33files : " .py$"
44exclude : " sphinx-docs/"
55repos :
6+ - repo : https://github.com/pre-commit/pre-commit-hooks
7+ rev : v4.6.0
8+ hooks :
9+ - id : check-merge-conflict
10+ name : Check that merge conflicts are not being committed
11+ - id : trailing-whitespace
12+ name : Remove trailing whitespace at end of line
13+ - id : mixed-line-ending
14+ name : Detect if mixed line ending is used (\r vs. \r\n)
15+ - id : end-of-file-fixer
16+ name : Make sure that there is an empty line at the end
617 - repo : https://github.com/psf/black
7- rev : 22.10.0
18+ rev : 24.4.2
819 hooks :
920 - id : black
1021 name : black
@@ -13,27 +24,16 @@ repos:
1324 language : python
1425 require_serial : true
1526 types_or : [python, pyi]
16- args : [--config=code-checks /.black.cfg]
27+ args : [--config=.code_quality /.black.cfg]
1728 - repo : https://github.com/PyCQA/isort
18- rev : 5.10.1
29+ rev : 5.13.2
1930 hooks :
2031 - id : isort
2132 name : Run isort to sort imports in Python files
2233 files : \.py$|\.pyi$
23- args : [--settings-path=code-checks/.isort.cfg]
24- - repo : https://github.com/pre-commit/pre-commit-hooks
25- rev : v4.3.0
26- hooks :
27- - id : check-merge-conflict
28- name : Check that merge conflicts are not being committed
29- - id : trailing-whitespace
30- name : Remove trailing whitespace at end of line
31- - id : mixed-line-ending
32- name : Detect if mixed line ending is used (\r vs. \r\n)
33- - id : end-of-file-fixer
34- name : Make sure that there is an empty line at the end
34+ args : [--settings-path=.code_quality/.isort.cfg]
3535 - repo : https://github.com/PyCQA/flake8
36- rev : 5 .0.4
36+ rev : 7 .0.0
3737 hooks :
3838 - id : flake8
3939 name : flake8
@@ -42,14 +42,14 @@ repos:
4242 language : python
4343 types : [python]
4444 require_serial : true
45- args : [--config=code-checks /.flake8]
45+ args : [--config=.code_quality /.flake8]
4646 - repo : local
4747 hooks :
4848 - id : mypy
4949 name : mypy
50- description : ' Optional static typing for Python (installed by Poetry )'
50+ description : ' Optional static typing for Python (installed as [test] dependency )'
5151 entry : mypy
5252 language : python
5353 require_serial : true
5454 types_or : [python, pyi]
55- args : [--config-file=code-checks /.mypy.ini]
55+ args : [--config-file=.code_quality /.mypy.ini]
0 commit comments