55# To update: `pre-commit autoupdate`
66# - &flake8_dependencies below needs updated manually
77fail_fast : true
8+ default_language_version :
9+ python : python3
810repos :
911 - repo : https://github.com/pre-commit/pre-commit-hooks
10- rev : v4.3 .0
12+ rev : v4.4 .0
1113 hooks :
1214 - id : check-added-large-files
1315 - id : check-ast
@@ -17,40 +19,45 @@ repos:
1719 - id : end-of-file-fixer
1820 - id : mixed-line-ending
1921 - id : trailing-whitespace
22+ - repo : https://github.com/abravalheri/validate-pyproject
23+ rev : v0.11
24+ hooks :
25+ - id : validate-pyproject
26+ name : Validate pyproject.toml
2027 - repo : https://github.com/myint/autoflake
21- rev : v1.7.7
28+ rev : v2.0.0
2229 hooks :
2330 - id : autoflake
2431 args : [--in-place]
2532 - repo : https://github.com/pycqa/isort
26- rev : 5.10.1
33+ rev : 5.12.0
2734 hooks :
2835 - id : isort
29- language_version : python3
3036 - repo : https://github.com/asottile/pyupgrade
31- rev : v3.2.2
37+ rev : v3.3.1
3238 hooks :
3339 - id : pyupgrade
3440 args : [--py38-plus]
3541 - repo : https://github.com/MarcoGorelli/auto-walrus
36- rev : v0.2.1
42+ rev : v0.2.2
3743 hooks :
38- - id : auto-walrus
44+ - id : auto-walrus
45+ args : [--line-length, "100"]
3946 - repo : https://github.com/psf/black
40- rev : 22.10 .0
47+ rev : 22.12 .0
4148 hooks :
4249 - id : black
43- language_version : python3
4450 args : [--target-version=py38]
4551 - repo : https://github.com/PyCQA/flake8
46- rev : 5 .0.4
52+ rev : 6 .0.0
4753 hooks :
4854 - id : flake8
4955 additional_dependencies : &flake8_dependencies
5056 # These versions need updated manually
51- - flake8==5 .0.4
57+ - flake8==6 .0.0
5258 - flake8-comprehensions==3.10.1
53- - flake8-bugbear==22.10.27
59+ - flake8-bugbear==23.1.20
60+ - flake8-simplify==0.19.3
5461 - repo : https://github.com/asottile/yesqa
5562 rev : v1.4.0
5663 hooks :
6269 - id : codespell
6370 types_or : [python, rst, markdown]
6471 files : ^(graphblas_algorithms|docs)/
65- # args: ["--ignore-words-list=coo,ba"]
6672 - repo : https://github.com/pre-commit/pre-commit-hooks
67- rev : v4.3 .0
73+ rev : v4.4 .0
6874 hooks :
6975 - id : no-commit-to-branch # no commit directly to main
70- # Maybe: black-jupyter, blacken-docs, blackdoc mypy, velin
0 commit comments