Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add common virtualenv locations to flake8 exclude and .gitignore #547

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

blaedd
Copy link
Contributor

@blaedd blaedd commented Feb 26, 2023

A minor quality of life improvement for (potential) contributors, this stops flake8 generating a barrage of errors when run, if you have a virtualenv in one of the common in-tree locations (.venv/, venv/ .env/).

Adds these paths to both flake8 extend-ignore in setup.cfg and .gitignore

Fixes #546

Copy link
Collaborator

@francoisfreitag francoisfreitag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, thanks!

- Add .env/ .venv/ and venv/ to flake8 extend-exclude in setup.cfg
- Add common in-tree locations for virtualenv environments to .gitignore (.env, .venv/, venv/)
- .env is also commonly used to store potentially confidential information such as API keys, so should probably be in here as a matter-of-course safety measure anyway, even though this project doesn't use such files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake8 doesn't exclude common virtualenv locations
2 participants