Skip to content

Commit 2e7328a

Browse files
committed
a couple of annoyances - remove unused imports, stop black and isort from fighting
1 parent e129113 commit 2e7328a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@ repos:
1717
rev: 6.0.1
1818
hooks:
1919
- id: isort
20+
- repo: https://github.com/PyCQA/autoflake
21+
rev: v2.3.1
22+
hooks:
23+
- id: autoflake
24+
args: [
25+
"--in-place",
26+
"--remove-unused-variables",
27+
"--remove-all-unused-imports",
28+
]
2029
- repo: https://github.com/PyCQA/flake8
21-
rev: 7.1.2
30+
rev: 7.2.0
2231
hooks:
2332
- id: flake8
2433
- repo: https://github.com/shellcheck-py/shellcheck-py

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ dev = [
2424
[build-system]
2525
build-backend = "flit_core.buildapi"
2626
requires = ["flit_core >=3.2,<4"]
27+
[tool.isort]
28+
profile = "black"
29+

0 commit comments

Comments
 (0)