We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Option 1:
autoflake removes unused imports and unused variables from Python code. It makes use of pyflakes to do this.
Example:
- repo: https://github.com/humitos/mirrors-autoflake.git rev: v1.1 hooks: - id: autoflake args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
Option 2:
pycln: a formatter for finding and removing unused import statements
- repo: https://github.com/hadialqattan/pycln rev: v0.0.1-beta.3 hooks: - id: pycln args: [--config=pyproject.toml]
Maybe there exist other options also...
The text was updated successfully, but these errors were encountered:
feature(pre-commit): Add autoflake to pre-commits
8d97b34
Refs #31
chore(pre-commit): Move autoflake before isort
984f69e
#31
chore(pre-commit): Change from autoflake to pycln
2104864
ingeridhellen
Successfully merging a pull request may close this issue.
Option 1:
autoflake removes unused imports and unused variables from Python code. It makes use of pyflakes to do this.
Example:
Option 2:
pycln: a formatter for finding and removing unused import statements
Example:
Maybe there exist other options also...
The text was updated successfully, but these errors were encountered: