11repos :
2+ - repo : https://github.com/pre-commit/pre-commit-hooks
3+ rev : v4.3.0
4+ hooks :
5+ - id : trailing-whitespace
6+ exclude : \.output
7+ - id : end-of-file-fixer
8+ exclude : \.(cp?p?$|output)
9+ - id : check-docstring-first
10+ - id : check-added-large-files
11+ - id : check-yaml
12+ - id : debug-statements
13+ - id : requirements-txt-fixer
14+ - repo : https://github.com/asottile/reorder_python_imports
15+ rev : v3.7.0
16+ hooks :
17+ - id : reorder-python-imports
18+ language_version : python3
19+ - repo : https://github.com/asottile/pyupgrade
20+ rev : v1.16.1
21+ hooks :
22+ - id : pyupgrade
23+ - repo : https://github.com/pycqa/flake8
24+ rev : ' 4.0.1'
25+ hooks :
26+ - id : flake8
27+ args : [--max-line-length=120]
28+ - repo : local
29+ hooks :
30+ - id : tests
31+ name : tests
32+ entry : bash -c "pip install . && pytest -v tests"
33+ description : Run all tests
34+ language : system
35+ types : [python]
36+
237 # Start: for development testing
338 - repo : https://github.com/shenxianpeng/cpp-linter-hooks
439 rev : latest
@@ -12,16 +47,3 @@ repos:
1247 # or specify the path of .clang-tidy
1348 # args: [--config-file=."]
1449 # End: for development testing
15- - repo : https://github.com/pycqa/flake8
16- rev : ' 4.0.1'
17- hooks :
18- - id : flake8
19- args : [--max-line-length=120]
20- - repo : local
21- hooks :
22- - id : tests
23- name : tests
24- entry : bash -c "pip install . && pytest -v tests"
25- description : Run all tests
26- language : system
27- types : [python]
0 commit comments