Skip to content

Commit

Permalink
Merge pull request #132 from mila-iqia/exclude_virtual_env_from_flake8
Browse files Browse the repository at this point in the history
flake8 now does not run in .venv
  • Loading branch information
mirkobronzi authored Oct 8, 2024
2 parents a0c22c0 + 518ffda commit d9ed66b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[flake8]
max-line-length=100
ignore=W503,D104,D100,D401
docstring-convention=google
docstring-convention=google
exclude= .venv
2 changes: 1 addition & 1 deletion hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e

# linting
flake8 --ignore D . # Check everything but docstrings
flake8 --select D --exclude tests/ # Check only the docstrings
flake8 --select D . --exclude tests/,.venv # Check only the docstrings
isort --check . # Check imports

# Raise error if any staged notebooks contain outputs
Expand Down

0 comments on commit d9ed66b

Please sign in to comment.