Skip to content

Commit

Permalink
Ignore F401 in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jobh committed Apr 25, 2024
1 parent f56ab96 commit 301523b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shed/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def _rewrite_on_disk(
writer: Callable[..., str] = docshed
elif fname.endswith(".pyi"):
writer = functools.partial(shed, is_pyi=True)
elif Path(fname).name == "__init__.py":
writer = functools.partial(shed, _remove_unused_imports=False)
else:
writer = shed

Expand Down

0 comments on commit 301523b

Please sign in to comment.