|
1 | 1 | repos: |
2 | | - - repo: https://github.com/asottile/pyupgrade |
3 | | - rev: v3.3.1 |
4 | | - hooks: |
5 | | - - id: pyupgrade |
6 | | - args: ["--py310-plus"] |
7 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
8 | | - rev: v4.4.0 |
9 | | - hooks: |
10 | | - - id: check-ast |
11 | | - - id: fix-byte-order-marker |
12 | | - - id: end-of-file-fixer |
13 | | - - id: trailing-whitespace |
14 | | - - id: check-yaml |
15 | | - - id: check-builtin-literals |
16 | | - - id: requirements-txt-fixer |
17 | | - - repo: https://github.com/psf/black |
18 | | - rev: 22.12.0 |
19 | | - hooks: |
20 | | - - id: black |
21 | | - args: [--line-length=100, --skip-string-normalization] |
22 | | - - repo: https://github.com/asottile/reorder_python_imports |
23 | | - rev: v3.9.0 |
24 | | - hooks: |
25 | | - - id: reorder-python-imports |
26 | | - - repo: https://github.com/pre-commit/pygrep-hooks |
27 | | - rev: v1.10.0 |
28 | | - hooks: |
29 | | - - id: python-use-type-annotations |
30 | | - - id: python-no-eval |
31 | | - - id: text-unicode-replacement-char |
32 | | - exclude: '.js$' |
33 | | - - repo: https://github.com/pycqa/flake8 |
34 | | - rev: 6.0.0 |
35 | | - hooks: |
36 | | - - id: flake8 |
37 | | - additional_dependencies: |
38 | | - - flake8-bugbear |
39 | | - - flake8-implicit-str-concat |
40 | | - args: [--max-line-length=100] |
41 | | - - repo: https://github.com/Lucas-C/pre-commit-hooks-safety |
42 | | - rev: v1.3.1 |
43 | | - hooks: |
44 | | - - id: python-safety-dependencies-check |
45 | | - files: requirements.txt |
46 | | -default_language_version: |
47 | | - python: python3.10 |
| 2 | +- repo: https://github.com/asottile/pyupgrade |
| 3 | + rev: v3.15.0 |
| 4 | + hooks: |
| 5 | + - id: pyupgrade |
| 6 | + args: [--py39-plus] |
| 7 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 8 | + rev: v4.5.0 |
| 9 | + hooks: |
| 10 | + - id: check-ast |
| 11 | + - id: fix-byte-order-marker |
| 12 | + - id: end-of-file-fixer |
| 13 | + - id: trailing-whitespace |
| 14 | + - id: check-yaml |
| 15 | + - id: check-builtin-literals |
| 16 | + - id: check-toml |
| 17 | +- repo: https://github.com/psf/black |
| 18 | + rev: 23.10.0 |
| 19 | + hooks: |
| 20 | + - id: black |
| 21 | +- repo: https://github.com/asottile/reorder_python_imports |
| 22 | + rev: v3.12.0 |
| 23 | + hooks: |
| 24 | + - id: reorder-python-imports |
| 25 | +- repo: https://github.com/pre-commit/pygrep-hooks |
| 26 | + rev: v1.10.0 |
| 27 | + hooks: |
| 28 | + - id: python-use-type-annotations |
| 29 | + - id: python-no-eval |
| 30 | + - id: text-unicode-replacement-char |
| 31 | + exclude: .js$ |
| 32 | +- repo: https://github.com/pycqa/flake8 |
| 33 | + rev: 6.1.0 |
| 34 | + hooks: |
| 35 | + - id: flake8 |
| 36 | + additional_dependencies: |
| 37 | + - flake8-bugbear |
| 38 | + - flake8-implicit-str-concat |
| 39 | + args: [--max-line-length=100] |
| 40 | +- repo: https://github.com/mrtazz/checkmake.git |
| 41 | + rev: 0.2.2 |
| 42 | + hooks: |
| 43 | + - id: checkmake |
| 44 | +- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks |
| 45 | + rev: v2.11.0 |
| 46 | + hooks: |
| 47 | + - id: pretty-format-yaml |
| 48 | + args: [--autofix, --indent, '2'] |
| 49 | + - id: pretty-format-toml |
| 50 | + args: [--autofix, --indent, '2'] |
0 commit comments