Skip to content

Commit

Permalink
Ignore pyflakes F401 'Module imported but unused' for __init__.py only
Browse files Browse the repository at this point in the history
Be more specific rather than globally enabling the exception. Documentation at https://flakeheaven.readthedocs.io/en/latest/config.html#example
  • Loading branch information
weiji14 committed Aug 18, 2022
1 parent 6822d87 commit 7dd65fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ show_source = true

[tool.flakeheaven.plugins]
pycodestyle = ["+*", "-E501", "-W503"]
pyflakes = ["+*", "-F401"]
pyflakes = ["+*"]

[tool.flakeheaven.exceptions."**/__init__.py"]
pyflakes = ["-F401"]

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down

0 comments on commit 7dd65fa

Please sign in to comment.