|
1 | 1 | repos: |
2 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
3 | | - rev: v4.4.0 |
4 | | - hooks: |
5 | | - - id: check-yaml |
6 | | - - id: check-merge-conflict |
7 | | - - id: debug-statements |
8 | | - - id: end-of-file-fixer |
9 | | - - id: trailing-whitespace |
10 | | - - repo: https://github.com/psf/black |
11 | | - rev: 23.1.0 |
12 | | - hooks: |
13 | | - - id: black |
14 | | - args: ["--config", "pyproject.toml"] |
15 | | - - repo: https://github.com/pycqa/isort |
16 | | - rev: 5.12.0 |
17 | | - hooks: |
18 | | - - id: isort |
19 | | - args: ["--show-config"] |
20 | | - - repo: https://github.com/pycqa/bandit |
21 | | - rev: 1.7.4 |
22 | | - hooks: |
23 | | - - id: bandit |
24 | | - additional_dependencies: ['.[toml]'] |
25 | | - args: ["--configfile", "pyproject.toml"] |
26 | | - exclude: '^tests/' |
27 | | - - repo: https://github.com/pycqa/flake8 |
28 | | - rev: 6.0.0 |
29 | | - hooks: |
30 | | - - id: flake8 |
31 | | - additional_dependencies: |
32 | | - - flake8-bugbear |
33 | | - - flake8-pyproject |
34 | | - - flake8-simplify |
35 | | - - pep8-naming |
36 | | - - repo: https://github.com/pycqa/autoflake |
37 | | - rev: v2.0.1 |
38 | | - hooks: |
39 | | - - id: autoflake |
40 | | - - repo: https://github.com/asottile/pyupgrade |
41 | | - rev: v3.3.1 |
42 | | - hooks: |
43 | | - - id: pyupgrade |
44 | | - args: ["--py39-plus", "--keep-runtime-typing"] |
45 | | - - repo: local |
46 | | - hooks: |
47 | | - - id: mypy |
48 | | - name: mypy |
49 | | - language: python |
50 | | - types_or: [python, pyi] |
51 | | - entry: env -u VIRTUAL_ENV poetry run mypy |
| 2 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v6.0.0 |
| 4 | + hooks: |
| 5 | + - id: check-yaml |
| 6 | + - id: check-merge-conflict |
| 7 | + - id: debug-statements |
| 8 | + - id: end-of-file-fixer |
| 9 | + - id: trailing-whitespace |
| 10 | +- repo: https://github.com/astral-sh/ruff-pre-commit |
| 11 | + rev: v0.14.11 |
| 12 | + hooks: |
| 13 | + - id: ruff |
| 14 | + args: ["--fix"] |
| 15 | + - id: ruff-format |
| 16 | +- repo: https://github.com/pycqa/bandit |
| 17 | + rev: 1.9.2 |
| 18 | + hooks: |
| 19 | + - id: bandit |
| 20 | + additional_dependencies: ['.[toml]'] |
| 21 | + args: ["--configfile", "pyproject.toml"] |
| 22 | + exclude: '^tests/' |
| 23 | +- repo: local |
| 24 | + hooks: |
| 25 | + - id: mypy |
| 26 | + name: mypy |
| 27 | + language: python |
| 28 | + types_or: [python, pyi] |
| 29 | + entry: env -u VIRTUAL_ENV poetry run mypy |
0 commit comments