@@ -2,84 +2,83 @@ default_language_version:
22 python : python3
33
44ci :
5- autofix_commit_msg : |
6- [pre-commit.ci] auto fixes from pre-commit.com hooks
5+ autofix_commit_msg : |
6+ [pre-commit.ci] auto fixes from pre-commit.com hooks
77
8- for more information, see https://pre-commit.ci
9- autofix_prs : true
10- autoupdate_branch : ' '
11- autoupdate_commit_msg : ' [pre-commit.ci] pre-commit autoupdate'
12- autoupdate_schedule : quarterly
13- skip : []
14- submodules : false
8+ for more information, see https://pre-commit.ci
9+ autofix_prs : true
10+ autoupdate_branch : " "
11+ autoupdate_commit_msg : " [pre-commit.ci] pre-commit autoupdate"
12+ autoupdate_schedule : quarterly
13+ skip : []
14+ submodules : false
1515
1616repos :
17- - repo : https://github.com/pre-commit/pre-commit-hooks
18- rev : v4.4.0
19- hooks :
17+ - repo : https://github.com/pre-commit/pre-commit-hooks
18+ rev : v4.4.0
19+ hooks :
2020 - id : check-added-large-files
2121 - id : check-docstring-first
2222 - id : check-json
23- exclude : ' asv.conf.json'
23+ exclude : " asv.conf.json"
2424 - id : check-merge-conflict
2525 - id : check-toml
2626 - id : check-yaml
27- args : [ ' --allow-multiple-documents' ]
27+ args : [" --allow-multiple-documents" ]
2828 - id : debug-statements
2929 - id : end-of-file-fixer
3030 - id : no-commit-to-branch
3131 - id : pretty-format-json
32- args : [ ' --autofix', ' --no-ensure-ascii', ' --no-sort-keys' ]
33- exclude : ' .ipynb|asv.conf.json'
32+ args : [" --autofix", " --no-ensure-ascii", " --no-sort-keys" ]
33+ exclude : " .ipynb|asv.conf.json"
3434 - id : trailing-whitespace
3535
36- - repo : https://github.com/psf/black-pre-commit-mirror
37- rev : 23.10.1
38- hooks :
39- - id : black
36+ - repo : https://github.com/charliermarsh/ruff-pre-commit
37+ rev : " v0.1.14"
38+ hooks :
39+ - id : ruff
40+ args : ["--select", "E,F,I001"]
41+ types_or : [python, pyi, jupyter]
42+ - id : ruff-format
43+ types_or : [python, pyi, jupyter]
4044
41- - repo : https://github.com/PyCQA/flake8
42- rev : 6.1.0
43- hooks :
44- - id : flake8
45-
46- - repo : https://github.com/PyCQA/isort
47- rev : 5.12.0
48- hooks :
49- - id : isort
50-
51- - repo : https://github.com/keewis/blackdoc
52- rev : v0.3.8
53- hooks :
45+ - repo : https://github.com/keewis/blackdoc
46+ rev : v0.3.8
47+ hooks :
5448 - id : blackdoc
55- additional_dependencies : [ ' black==23.10.1' ]
49+ additional_dependencies : [" black==23.10.1" ]
5650
57- - repo : https://github.com/PyCQA/doc8
58- rev : v1.0.0
59- hooks :
51+ - repo : https://github.com/PyCQA/doc8
52+ rev : v1.0.0
53+ hooks :
6054 - id : doc8
61- args : ["--max-line-length", "100",
62- " --allow-long-titles" ,
63- " --ignore-path" , "docs/source/api/"]
55+ args :
56+ [
57+ " --max-line-length" ,
58+ " 100" ,
59+ " --allow-long-titles" ,
60+ " --ignore-path" ,
61+ " docs/source/api/" ,
62+ ]
6463
65- - repo : https://github.com/pre-commit/mirrors-mypy
66- rev : v0.982
67- hooks :
64+ - repo : https://github.com/pre-commit/mirrors-mypy
65+ rev : " v1.8.0 "
66+ hooks :
6867 - id : mypy
69- exclude : ' asv_bench'
68+ exclude : " asv_bench"
7069 additional_dependencies : [
7170 # Type stubs
7271 types-python-dateutil,
7372 types-pkg_resources,
7473 types-PyYAML,
7574 types-pytz,
76- typing-extensions==3.10.0.0 ,
75+ typing-extensions,
7776 # Dependencies that are typed
7877 numpy,
7978 ]
8079
81- - repo : https://github.com/python-jsonschema/check-jsonschema
82- rev : 0.27.0
83- hooks :
80+ - repo : https://github.com/python-jsonschema/check-jsonschema
81+ rev : 0.27.0
82+ hooks :
8483 - id : check-github-workflows
8584 - id : check-readthedocs
0 commit comments