|
| 1 | +ci: |
| 2 | + skip: [check-jsonschema] |
| 3 | + |
1 | 4 | repos:
|
| 5 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 6 | + rev: v4.1.0 |
| 7 | + hooks: |
| 8 | + - id: end-of-file-fixer |
| 9 | + - id: check-case-conflict |
| 10 | + - id: check-executables-have-shebangs |
| 11 | + - id: requirements-txt-fixer |
| 12 | + - id: check-added-large-files |
| 13 | + - id: check-case-conflict |
| 14 | + - id: check-toml |
| 15 | + - id: check-yaml |
| 16 | + - id: debug-statements |
| 17 | + - id: forbid-new-submodules |
| 18 | + - id: check-builtin-literals |
| 19 | + - id: trailing-whitespace |
| 20 | + |
2 | 21 | - repo: https://github.com/asottile/reorder_python_imports
|
3 |
| - rev: v2.7.1 |
| 22 | + rev: v3.0.1 |
4 | 23 | hooks:
|
5 | 24 | - id: reorder-python-imports
|
| 25 | + |
6 | 26 | - repo: https://github.com/psf/black
|
7 |
| - rev: 22.1.0 |
| 27 | + rev: 22.3.0 |
8 | 28 | hooks:
|
9 | 29 | - id: black
|
10 | 30 | args: ["--line-length", "100"]
|
| 31 | + |
11 | 32 | - repo: https://github.com/pre-commit/mirrors-prettier
|
12 |
| - rev: v2.5.1 |
| 33 | + rev: v2.6.1 |
13 | 34 | hooks:
|
14 | 35 | - id: prettier
|
15 |
| - - repo: https://gitlab.com/pycqa/flake8 |
16 |
| - rev: "3.9.2" |
| 36 | + |
| 37 | + - repo: https://github.com/pycqa/flake8 |
| 38 | + rev: 4.0.1 |
17 | 39 | hooks:
|
18 | 40 | - id: flake8
|
19 |
| - - repo: https://github.com/pre-commit/pre-commit-hooks |
20 |
| - rev: v4.1.0 |
| 41 | + additional_dependencies: |
| 42 | + [ |
| 43 | + "flake8-bugbear==20.1.4", |
| 44 | + "flake8-logging-format==0.6.0", |
| 45 | + "flake8-implicit-str-concat==0.2.0", |
| 46 | + ] |
| 47 | + |
| 48 | + - repo: https://github.com/PyCQA/doc8 |
| 49 | + rev: 0.11.0 |
21 | 50 | hooks:
|
22 |
| - - id: end-of-file-fixer |
23 |
| - - id: check-case-conflict |
24 |
| - - id: check-executables-have-shebangs |
25 |
| - - id: requirements-txt-fixer |
| 51 | + - id: doc8 |
| 52 | + args: [--max-line-length=100] |
| 53 | + |
| 54 | + - repo: https://github.com/sirosen/check-jsonschema |
| 55 | + rev: 0.14.2 |
| 56 | + hooks: |
| 57 | + - id: check-jsonschema |
| 58 | + name: "Check GitHub Workflows" |
| 59 | + files: ^\.github/workflows/ |
| 60 | + types: [yaml] |
| 61 | + args: ["--schemafile", "https://json.schemastore.org/github-workflow"] |
0 commit comments