Skip to content

Commit

Permalink
Remove flake8 F401 exclusion for __init__.py files
Browse files Browse the repository at this point in the history
Instead declare the `__all__` variable as stated by flake8's maintainer:
https://stackoverflow.com/a/59438802
  • Loading branch information
Eric Young committed Apr 27, 2021
1 parent 95d60b3 commit 9894063
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ exclude = venv*,__pycache__,node_modules,bower_components,migrations
ignore = D203,W503
max-complexity = 9
max-line-length = 120
per-file-ignores = __init__.py:F401
1 change: 1 addition & 0 deletions hooks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from hooks.post_gen_project import remove_folder, set_aqa_framework, set_request_template
from hooks.pre_gen_project import check_valid_email_address_format
__all__ = ("check_valid_email_address_format", "remove_folder", "set_aqa_framework", "set_request_template", )
1 change: 0 additions & 1 deletion {{ cookiecutter.repo_name }}/.flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ exclude = venv*,__pycache__,node_modules,bower_components,migrations
ignore = D203,W503
max-complexity = 9
max-line-length = 120
per-file-ignores = __init__.py:F401

0 comments on commit 9894063

Please sign in to comment.