Skip to content

Commit 32d796e

Browse files
added pre-commit
1 parent d941f19 commit 32d796e

File tree

1 file changed

+40
-19
lines changed

1 file changed

+40
-19
lines changed

.pre-commit-config.yaml

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,45 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
44
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
7-
- id: trailing-whitespace
8-
- id: check-added-large-files
9-
- repo: https://github.com/psf/black
10-
rev: 22.10.0
5+
# all available hooks can be found here: https://github.com/pre-commit/pre-commit-hooks/blob/main/.pre-commit-hooks.yaml
6+
- id: check-yaml
7+
- id: check-ast
8+
- id: check-docstring-first
9+
- id: check-case-conflict
10+
- id: check-merge-conflict
11+
- id: check-added-large-files
12+
args: ["--maxkb=500"]
13+
- id: trailing-whitespace
14+
- id: fix-byte-order-marker
15+
- id: fix-encoding-pragma
16+
- id: requirements-txt-fixer
17+
- id: end-of-file-fixer
18+
- id: check-executables-have-shebangs
19+
- id: detect-private-key
20+
- repo: https://github.com/psf/black
21+
rev: 23.1.0
1122
hooks:
12-
- id: black
13-
- repo: https://github.com/PyCQA/isort
14-
rev: 5.12.0
15-
hooks:
16-
- id: isort
17-
args: ["--profile", "black"] # solves conflicts between black and isort
18-
- repo: https://github.com/pycqa/flake8
19-
rev: '6.0.0'
23+
- id: black
24+
- repo: https://github.com/PyCQA/isort
25+
rev: 5.12.0
2026
hooks:
21-
- id: flake8
22-
# exclude: ^examples/
23-
# additional_dependencies: [flake8-docstrings]
27+
- id: isort
28+
args: ["--profile", "black"] # solves conflicts between black and isort
29+
- repo: https://github.com/pycqa/flake8
30+
rev: 6.0.0
31+
hooks:
32+
- id: flake8
2433
args: ["--select=E9,F63,F7,F82", "--show-source", "--statistics"]
34+
- repo: https://github.com/pycqa/pylint
35+
rev: v2.17.0
36+
hooks:
37+
- id: pylint
38+
name: pylint
39+
types: [python]
40+
exclude: ^examples/|^tests/|^setup.py$
41+
args: ["--rcfile=.pylintrc"]
42+
- repo: https://github.com/pre-commit/mirrors-prettier
43+
rev: v2.7.1
44+
hooks:
45+
- id: prettier

0 commit comments

Comments
 (0)