|
1 | 1 | # See https://pre-commit.com for more information |
2 | 2 | # See https://pre-commit.com/hooks.html for more hooks |
3 | 3 | default_language_version: |
4 | | - python: python3.12 |
| 4 | + python: python3.12 |
5 | 5 | default_stages: [pre-commit, pre-push] |
6 | 6 | repos: |
7 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
8 | | - rev: v5.0.0 |
9 | | - hooks: |
10 | | - - id: check-toml |
11 | | - - id: check-xml |
12 | | - - id: check-yaml |
13 | | - - id: check-added-large-files |
14 | | - - id: detect-aws-credentials |
15 | | - args: |
16 | | - - --allow-missing-credentials |
17 | | - - id: end-of-file-fixer |
18 | | - - id: mixed-line-ending |
19 | | - - id: pretty-format-json |
20 | | - args: |
21 | | - - --autofix |
22 | | - - id: trailing-whitespace |
23 | | - exclude_types: |
24 | | - - javascript |
25 | | - - markdown |
26 | | -- repo: https://github.com/PyCQA/flake8 |
27 | | - rev: 7.2.0 |
28 | | - hooks: |
29 | | - - id: flake8 |
30 | | - additional_dependencies: |
31 | | - - flake8-bugbear |
32 | | - - flake8-noqa |
33 | | - args: |
34 | | - - --max-line-length=120 |
35 | | - - --max-complexity=18 |
36 | | -- repo: https://github.com/psf/black |
37 | | - rev: 25.1.0 |
38 | | - hooks: |
39 | | - - id: black |
40 | | - language_version: python3.12 |
41 | | - args: |
42 | | - - --line-length=120 |
43 | | -- repo: https://github.com/PyCQA/bandit |
44 | | - rev: '1.8.3' |
45 | | - hooks: |
46 | | - - id: bandit |
47 | | -- repo: https://github.com/PyCQA/isort |
48 | | - rev: '6.0.1' |
49 | | - hooks: |
50 | | - - id: isort |
51 | | -- repo: https://github.com/dosisod/refurb |
52 | | - rev: v2.0.0 |
53 | | - hooks: |
54 | | - - id: refurb |
55 | | - additional_dependencies: |
56 | | - - boto3 |
57 | | - - django-constance |
58 | | - - django-cors-headers |
59 | | - - django-environ |
60 | | - - django-extensions |
61 | | - - django-filter |
62 | | - - django-simple-history |
63 | | - - django-stubs[compatible-mypy] |
64 | | - - drf-spectacular |
65 | | - - drf-standardized-errors |
66 | | - - djangorestframework-stubs[compatible-mypy] |
67 | | - - zappa-django-utils |
68 | | -- repo: https://github.com/astral-sh/uv-pre-commit |
69 | | - rev: 0.6.12 |
70 | | - hooks: |
71 | | - - id: uv-lock |
72 | | -- repo: https://github.com/astral-sh/ruff-pre-commit |
73 | | - rev: v0.11.4 |
74 | | - hooks: |
75 | | - - id: ruff |
76 | | - args: |
77 | | - - --fix |
78 | | - - id: ruff-format |
| 7 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 8 | + rev: v5.0.0 |
| 9 | + hooks: |
| 10 | + - id: check-toml |
| 11 | + - id: check-xml |
| 12 | + - id: check-yaml |
| 13 | + - id: check-added-large-files |
| 14 | + - id: detect-aws-credentials |
| 15 | + args: |
| 16 | + - --allow-missing-credentials |
| 17 | + - id: end-of-file-fixer |
| 18 | + - id: mixed-line-ending |
| 19 | + - id: pretty-format-json |
| 20 | + args: |
| 21 | + - --autofix |
| 22 | + - id: trailing-whitespace |
| 23 | + exclude_types: |
| 24 | + - javascript |
| 25 | + - markdown |
| 26 | + - repo: https://github.com/PyCQA/flake8 |
| 27 | + rev: 7.2.0 |
| 28 | + hooks: |
| 29 | + - id: flake8 |
| 30 | + additional_dependencies: |
| 31 | + - flake8-bugbear |
| 32 | + - flake8-noqa |
| 33 | + args: |
| 34 | + - --max-line-length=120 |
| 35 | + - --max-complexity=18 |
| 36 | + - repo: https://github.com/psf/black |
| 37 | + rev: 25.1.0 |
| 38 | + hooks: |
| 39 | + - id: black |
| 40 | + language_version: python3.12 |
| 41 | + args: |
| 42 | + - --line-length=120 |
| 43 | + - repo: https://github.com/PyCQA/bandit |
| 44 | + rev: "1.8.3" |
| 45 | + hooks: |
| 46 | + - id: bandit |
| 47 | + args: |
| 48 | + - -c |
| 49 | + - bandit.yaml |
| 50 | + - repo: https://github.com/PyCQA/isort |
| 51 | + rev: "6.0.1" |
| 52 | + hooks: |
| 53 | + - id: isort |
| 54 | + - repo: https://github.com/dosisod/refurb |
| 55 | + rev: v2.0.0 |
| 56 | + hooks: |
| 57 | + - id: refurb |
| 58 | + additional_dependencies: |
| 59 | + - boto3 |
| 60 | + - django-constance |
| 61 | + - django-cors-headers |
| 62 | + - django-environ |
| 63 | + - django-extensions |
| 64 | + - django-filter |
| 65 | + - django-simple-history |
| 66 | + - django-stubs[compatible-mypy] |
| 67 | + - drf-spectacular |
| 68 | + - drf-standardized-errors |
| 69 | + - djangorestframework-stubs[compatible-mypy] |
| 70 | + - zappa-django-utils |
| 71 | + - repo: https://github.com/astral-sh/uv-pre-commit |
| 72 | + rev: 0.6.12 |
| 73 | + hooks: |
| 74 | + - id: uv-lock |
| 75 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 76 | + rev: v0.11.4 |
| 77 | + hooks: |
| 78 | + - id: ruff |
| 79 | + args: |
| 80 | + - --fix |
| 81 | + - id: ruff-format |
79 | 82 | # - repo: https://github.com/pre-commit/mirrors-mypy |
80 | 83 | # rev: 'v1.15.0' |
81 | 84 | # hooks: |
|
0 commit comments