Skip to content

Commit 039b9b3

Browse files
committed
.flake8: Exclude venv and dotfiles when running flake8 from the command line
With pre-commit, flake8 is automatically run only on the diff to be committed. However, when invoking `flake8` from the command line, the current config covers all python files found in the entire repository, including third-party packages in venv. This patch teaches flake8 to exclude the venv directory as well as any dotfiles when run from the command line.
1 parent e74eb94 commit 039b9b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[flake8]
2+
exclude = .??*, venv
23
ignore = E203, E266, E501, W503, F403, F401
34
max-line-length = 88
45
max-complexity = 18
5-
select = B,C,E,F,W,T4,B9
6+
select = B,C,E,F,W,T4,B9

0 commit comments

Comments
 (0)