Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid auto-fixing unused imports in __init__.py #489

Merged
merged 1 commit into from
Oct 27, 2022
Merged

Conversation

charliermarsh
Copy link
Member

Resolves #484:

∴ cargo run resources/test/fixtures/__init__.py -n
   Compiling ruff v0.0.85 (/Users/crmarsh/workspace/ruff)
    Finished dev [unoptimized + debuginfo] target(s) in 3.61s
     Running `target/debug/ruff resources/test/fixtures/__init__.py -n`
Found 1 error(s).
resources/test/fixtures/__init__.py:1:1: F401 `os` imported but unused and missing from `__all__`

@charliermarsh charliermarsh merged commit 389fe1f into main Oct 27, 2022
@charliermarsh charliermarsh deleted the charlie/init branch October 27, 2022 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--fix flag removes imports in __init__ files if there is a lack of __all__
1 participant