Skip to content

Commit

Permalink
Add --ignore-init-module-imports to autoflake args (#283)
Browse files Browse the repository at this point in the history
Libraries often import things in __init__.py so they can be reexported
to users rather than used directly by __init__.py. These should be
ignored by autoflake.
  • Loading branch information
rzblue authored Jul 29, 2024
1 parent ed9e8b4 commit 6702087
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wpiformat/wpiformat/pyformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def run_batch(config_file, names):
"autoflake",
"--remove-all-unused-imports",
"--remove-unused-variables",
"--ignore-init-module-imports",
"--quiet",
"-i",
]
Expand Down

0 comments on commit 6702087

Please sign in to comment.