Skip to content

Commit ee6e079

Browse files
committed
precommit
1 parent 3379f41 commit ee6e079

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
repos:
2+
# https://pycqa.github.io/isort/docs/configuration/black_compatibility.html#integration-with-pre-commit
3+
- repo: https://github.com/pycqa/isort
4+
rev: 5.12.0
5+
hooks:
6+
- id: isort
7+
args: ["--profile", "black", "--filter-files"]
8+
- repo: https://github.com/psf/black
9+
rev: 23.7.0
10+
hooks:
11+
- id: black
12+
args: ["--line-length=100"]
13+
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html?highlight=other%20tools#flake8
14+
- repo: https://github.com/PyCQA/flake8
15+
rev: 6.1.0
16+
hooks:
17+
- id: flake8
18+
args: ["--max-line-length=100", "--extend-ignore=E203,E712"]
19+
# https://github.com/pre-commit/pre-commit-hooks
20+
- repo: https://github.com/pre-commit/pre-commit-hooks
21+
rev: v4.4.0
22+
hooks:
23+
- id: trailing-whitespace
24+
- id: end-of-file-fixer

0 commit comments

Comments
 (0)