Skip to content

Commit dcb952a

Browse files
committed
Patch .pre-commit-config.yaml
1 parent dcf7639 commit dcb952a

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,43 @@
33
# SPDX-License-Identifier: Unlicense
44

55
repos:
6-
- repo: https://github.com/python/black
6+
- repo: https://github.com/python/black
77
rev: 22.3.0
88
hooks:
9-
- id: black
10-
- repo: https://github.com/fsfe/reuse-tool
11-
rev: v0.12.1
9+
- id: black
10+
- repo: https://github.com/fsfe/reuse-tool
11+
rev: v0.14.0
1212
hooks:
13-
- id: reuse
14-
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v2.3.0
13+
- id: reuse
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v4.2.0
1616
hooks:
17-
- id: check-yaml
18-
- id: end-of-file-fixer
19-
- id: trailing-whitespace
20-
- repo: https://github.com/pycqa/pylint
17+
- id: check-yaml
18+
- id: end-of-file-fixer
19+
- id: trailing-whitespace
20+
- repo: https://github.com/pycqa/pylint
2121
rev: v2.11.1
2222
hooks:
23-
- id: pylint
23+
- id: pylint
2424
name: pylint (library code)
2525
types: [python]
2626
exclude: "^(docs/|examples/|tests/|setup.py$)"
27-
- repo: local
27+
- repo: local
2828
hooks:
29-
- id: pylint_examples
29+
- id: pylint_examples
3030
name: pylint (examples code)
3131
description: Run pylint rules on "examples/*.py" files
3232
entry: /usr/bin/env bash -c
33-
args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name,consider-using-f-string $example; done)']
33+
args:
34+
- ([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py");
35+
do pylint --disable=missing-docstring,invalid-name,consider-using-f-string
36+
$example; done)
3437
language: system
35-
- id: pylint_tests
38+
- id: pylint_tests
3639
name: pylint (tests code)
3740
description: Run pylint rules on "tests/*.py" files
3841
entry: /usr/bin/env bash -c
39-
args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring $test; done)']
42+
args:
43+
- ([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint
44+
--disable=missing-docstring $test; done)
4045
language: system

0 commit comments

Comments
 (0)