|
5 | 5 | # To update: `pre-commit autoupdate`
|
6 | 6 | # - &flake8_dependencies below needs updated manually
|
7 | 7 | fail_fast: true
|
| 8 | +default_language_version: |
| 9 | +python: python3 |
8 | 10 | repos:
|
9 | 11 | - repo: https://.com/pre-commit/pre-commit-hooks
|
10 |
| -rev: v4.3.0 |
| 12 | +rev: v4.4.0 |
11 | 13 | hooks:
|
12 | 14 | - id: check-added-large-files
|
13 | 15 | - id: check-ast
|
@@ -17,40 +19,45 @@ repos:
|
17 | 19 | - id: end-of-file-fixer
|
18 | 20 | - id: mixed-line-ending
|
19 | 21 | - id: trailing-whitespace
|
| 22 | +- repo: https://.com/abravalheri/validate-pyproject |
| 23 | +rev: v0.11 |
| 24 | +hooks: |
| 25 | +- id: validate-pyproject |
| 26 | +name: Validate pyproject.toml |
20 | 27 | - repo: https://.com/myint/autoflake
|
21 |
| -rev: v1.7.7 |
| 28 | +rev: v2.0.0 |
22 | 29 | hooks:
|
23 | 30 | - id: autoflake
|
24 | 31 | args: [--in-place]
|
25 | 32 | - repo: https://.com/pycqa/isort
|
26 |
| -rev: 5.10.1 |
| 33 | +rev: 5.12.0 |
27 | 34 | hooks:
|
28 | 35 | - id: isort
|
29 |
| -language_version: python3 |
30 | 36 | - repo: https://.com/asottile/pyupgrade
|
31 |
| -rev: v3.2.2 |
| 37 | +rev: v3.3.1 |
32 | 38 | hooks:
|
33 | 39 | - id: pyupgrade
|
34 | 40 | args: [--py38-plus]
|
35 | 41 | - repo: https://.com/MarcoGorelli/auto-walrus
|
36 |
| -rev: v0.2.1 |
| 42 | +rev: v0.2.2 |
37 | 43 | hooks:
|
38 |
| -- id: auto-walrus |
| 44 | +- id: auto-walrus |
| 45 | +args: [--line-length, "100"] |
39 | 46 | - repo: https://.com/psf/black
|
40 |
| -rev: 22.10.0 |
| 47 | +rev: 22.12.0 |
41 | 48 | hooks:
|
42 | 49 | - id: black
|
43 |
| -language_version: python3 |
44 | 50 | args: [--target-version=py38]
|
45 | 51 | - repo: https://.com/PyCQA/flake8
|
46 |
| -rev: 5.0.4 |
| 52 | +rev: 6.0.0 |
47 | 53 | hooks:
|
48 | 54 | - id: flake8
|
49 | 55 | additional_dependencies: &flake8_dependencies
|
50 | 56 | # These versions need updated manually
|
51 |
| -- flake8==5.0.4 |
| 57 | +- flake8==6.0.0 |
52 | 58 | - flake8-comprehensions==3.10.1
|
53 |
| -- flake8-bugbear==22.10.27 |
| 59 | +- flake8-bugbear==23.1.20 |
| 60 | +- flake8-simplify==0.19.3 |
54 | 61 | - repo: https://.com/asottile/yesqa
|
55 | 62 | rev: v1.4.0
|
56 | 63 | hooks:
|
|
62 | 69 | - id: codespell
|
63 | 70 | types_or: [python, rst, markdown]
|
64 | 71 | files: ^(graphblas_algorithms|docs)/
|
65 |
| -# args: ["--ignore-words-list=coo,ba"] |
66 | 72 | - repo: https://.com/pre-commit/pre-commit-hooks
|
67 |
| -rev: v4.3.0 |
| 73 | +rev: v4.4.0 |
68 | 74 | hooks:
|
69 | 75 | - id: no-commit-to-branch # no commit directly to main
|
70 |
| -# Maybe: black-jupyter, blacken-docs, blackdoc mypy, velin |
|
0 commit comments