|
3 | 3 | # SPDX-License-Identifier: Unlicense
|
4 | 4 |
|
5 | 5 | repos:
|
6 |
| -- repo: https://github.com/python/black |
| 6 | + - repo: https://github.com/python/black |
7 | 7 | rev: 22.3.0
|
8 | 8 | 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 |
12 | 12 | 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 |
16 | 16 | 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 |
21 | 21 | rev: v2.11.1
|
22 | 22 | hooks:
|
23 |
| - - id: pylint |
| 23 | + - id: pylint |
24 | 24 | name: pylint (library code)
|
25 | 25 | types: [python]
|
26 | 26 | exclude: "^(docs/|examples/|tests/|setup.py$)"
|
27 |
| - args: ["--disable=consider-using-f-string"] |
28 |
| -- repo: local |
| 27 | + args: |
| 28 | + - --disable=consider-using-f-string |
| 29 | + - repo: local |
29 | 30 | hooks:
|
30 |
| - - id: pylint_examples |
| 31 | + - id: pylint_examples |
31 | 32 | name: pylint (examples code)
|
32 | 33 | description: Run pylint rules on "examples/*.py" files
|
33 | 34 | entry: /usr/bin/env bash -c
|
34 |
| - args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name,consider-using-f-string $example; done)'] |
| 35 | + args: |
| 36 | + - ([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); |
| 37 | + do pylint --disable=missing-docstring,invalid-name,consider-using-f-string |
| 38 | + $example; done) |
35 | 39 | language: system
|
36 |
| - - id: pylint_tests |
| 40 | + - id: pylint_tests |
37 | 41 | name: pylint (tests code)
|
38 | 42 | description: Run pylint rules on "tests/*.py" files
|
39 | 43 | entry: /usr/bin/env bash -c
|
40 |
| - args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring $test; done)'] |
| 44 | + args: |
| 45 | + - ([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint |
| 46 | + --disable=missing-docstring $test; done) |
41 | 47 | language: system
|
0 commit comments