mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
Exclude virtual env dirs by default
This commit is contained in:
parent
4076373a3d
commit
1ee6bd2acc
2 changed files with 5 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ Options and their Descriptions
|
||||||
|
|
||||||
Provide a comma-separated list of glob patterns to exclude from checks.
|
Provide a comma-separated list of glob patterns to exclude from checks.
|
||||||
|
|
||||||
This defaults to: ``.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.nox,.eggs,*.egg``
|
This defaults to: ``.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.nox,.eggs,*.egg,.env,env,.venv,venv``
|
||||||
|
|
||||||
Example patterns:
|
Example patterns:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@ EXCLUDE = (
|
||||||
".nox",
|
".nox",
|
||||||
".eggs",
|
".eggs",
|
||||||
"*.egg",
|
"*.egg",
|
||||||
|
".env",
|
||||||
|
"env",
|
||||||
|
".venv",
|
||||||
|
"venv",
|
||||||
)
|
)
|
||||||
IGNORE = ("E121", "E123", "E126", "E226", "E24", "E704", "W503", "W504")
|
IGNORE = ("E121", "E123", "E126", "E226", "E24", "E704", "W503", "W504")
|
||||||
MAX_LINE_LENGTH = 79
|
MAX_LINE_LENGTH = 79
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue