chore: add pycln for easier cleanup of imports (#845)
This commit is contained in:
@@ -25,6 +25,13 @@ repos:
|
||||
exclude: ^(cibuildwheel|unit_test|test)/
|
||||
args: ["--py37-plus"]
|
||||
|
||||
# Autoremoves unused imports
|
||||
- repo: https://github.com/hadialqattan/pycln
|
||||
rev: v1.0.3
|
||||
hooks:
|
||||
- id: pycln
|
||||
args: [--config=pyproject.toml]
|
||||
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.9.3
|
||||
hooks:
|
||||
|
||||
@@ -65,3 +65,6 @@ module = [
|
||||
"github",
|
||||
]
|
||||
ignore_missing_imports = true
|
||||
|
||||
[tool.pycln]
|
||||
all = true
|
||||
|
||||
Reference in New Issue
Block a user