Closed evanroyrees closed 10 months ago
Add hook to pre-commit hooks config to remove unused imports in python files.
See https://pre-commit.com/hooks.html (cmd+F pycln) for list of pre-commit hooks.
pycln
This looks promising: https://github.com/hadialqattan/pycln
The relevant code for .pre-commit-config.yaml 🍝 https://hadialqattan.github.io/pycln/#/?id=integrations
.pre-commit-config.yaml
Append to .pre-commit-config.yaml:
- repo: https://github.com/hadialqattan/pycln rev: v2.1.5 # Possible releases: https://github.com/hadialqattan/pycln/releases hooks: - id: pycln
Add hook to pre-commit hooks config to remove unused imports in python files.
See https://pre-commit.com/hooks.html (cmd+F
pycln
) for list of pre-commit hooks.This looks promising: https://github.com/hadialqattan/pycln
The relevant code for
.pre-commit-config.yaml
🍝 https://hadialqattan.github.io/pycln/#/?id=integrationsAppend to
.pre-commit-config.yaml
: