Skip to content

Commit 3797b81

Browse files
committed
Add autoflake and isort to pre-commit
1 parent af1a0b3 commit 3797b81

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
repos:
2+
- repo: https://github.com/myint/autoflake
3+
rev: v2.0.0
4+
hooks:
5+
- id: autoflake
6+
args: ["--in-place"]
7+
exclude: ^torch_np/tests/numpy_tests/
8+
- repo: https://github.com/timothycrosley/isort
9+
rev: 5.11.4
10+
hooks:
11+
- id: isort
12+
args: ["--profile", "black", "--filter-files"]
13+
exclude: ^torch_np/tests/numpy_tests/
214
- repo: https://github.com/psf/black
315
rev: 22.12.0
416
hooks:

0 commit comments

Comments
 (0)