22#
33# Before first use: `pre-commit install`
44# To run: `pre-commit run --all-files`
5+ fail_fast : true
56repos :
67 - repo : https://github.com/pre-commit/pre-commit-hooks
7- rev : v4.2 .0
8+ rev : v4.3 .0
89 hooks :
910 - id : check-added-large-files
11+ - id : check-ast
12+ - id : check-toml
1013 - id : check-yaml
1114 - id : debug-statements
1215 - id : end-of-file-fixer
1316 - id : mixed-line-ending
1417 - id : trailing-whitespace
1518 - repo : https://github.com/myint/autoflake
16- rev : v1.4
19+ rev : v1.7.7
1720 hooks :
1821 - id : autoflake
1922 args : [--in-place]
@@ -23,34 +26,42 @@ repos:
2326 - id : isort
2427 language_version : python3
2528 - repo : https://github.com/asottile/pyupgrade
26- rev : v2.32 .0
29+ rev : v3.1 .0
2730 hooks :
2831 - id : pyupgrade
2932 args : [--py38-plus]
33+ - repo : https://github.com/MarcoGorelli/auto-walrus
34+ rev : v0.2.1
35+ hooks :
36+ - id : auto-walrus
3037 - repo : https://github.com/psf/black
31- rev : 22.3 .0
38+ rev : 22.10 .0
3239 hooks :
3340 - id : black
3441 language_version : python3
3542 args : [--target-version=py38]
3643 - repo : https://github.com/PyCQA/flake8
37- rev : 4 .0.1
44+ rev : 5 .0.4
3845 hooks :
3946 - id : flake8
4047 additional_dependencies : &flake8_dependencies
41- - flake8==4 .0.1
42- - flake8-comprehensions==3.8 .0
43- - flake8-bugbear==22.3 .23
48+ - flake8==5 .0.4
49+ - flake8-comprehensions==3.10 .0
50+ - flake8-bugbear==22.9 .23
4451 - repo : https://github.com/asottile/yesqa
45- rev : v1.3 .0
52+ rev : v1.4 .0
4653 hooks :
4754 - id : yesqa
4855 additional_dependencies : *flake8_dependencies
4956 - repo : https://github.com/codespell-project/codespell
50- rev : v2.1.0
57+ rev : v2.2.2
5158 hooks :
5259 - id : codespell
5360 types_or : [python, rst, markdown]
5461 files : ^(graphblas_algorithms|docs)/
5562 # args: ["--ignore-words-list=coo,ba"]
63+ - repo : https://github.com/pre-commit/pre-commit-hooks
64+ rev : v4.3.0
65+ hooks :
66+ - id : no-commit-to-branch # no commit directly to main
5667# Maybe: black-jupyter, blacken-docs, blackdoc mypy, velin
0 commit comments