|
1 | 1 | default_language_version: |
2 | | - python: python3 |
| 2 | + python: python3 |
3 | 3 |
|
4 | 4 | repos: |
5 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
6 | | - rev: "v5.0.0" |
7 | | - hooks: |
8 | | - - id: check-added-large-files |
9 | | - args: ["--maxkb=1024"] |
10 | | - - id: check-case-conflict |
11 | | - - id: check-docstring-first |
12 | | - - id: check-executables-have-shebangs |
13 | | - - id: check-json |
14 | | - - id: check-merge-conflict |
15 | | - - id: check-shebang-scripts-are-executable |
16 | | - - id: check-toml |
17 | | - - id: check-yaml |
18 | | - args: ["--allow-multiple-documents"] |
19 | | - - id: debug-statements |
20 | | - - id: detect-private-key |
21 | | - - id: end-of-file-fixer |
22 | | - exclude_types: [json, sql] |
23 | | - - id: file-contents-sorter |
24 | | - files: ^(requirements/\w*.txt)$ |
25 | | - args: ["--ignore-case", "--unique"] |
26 | | - - id: fix-byte-order-marker |
27 | | - - id: mixed-line-ending |
28 | | - - id: trailing-whitespace |
| 5 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 6 | + rev: "v5.0.0" |
| 7 | + hooks: |
| 8 | + - id: check-added-large-files |
| 9 | + args: ["--maxkb=1024"] |
| 10 | + - id: check-case-conflict |
| 11 | + - id: check-docstring-first |
| 12 | + - id: check-executables-have-shebangs |
| 13 | + - id: check-json |
| 14 | + - id: check-merge-conflict |
| 15 | + - id: check-shebang-scripts-are-executable |
| 16 | + - id: check-toml |
| 17 | + - id: check-yaml |
| 18 | + args: ["--allow-multiple-documents"] |
| 19 | + - id: debug-statements |
| 20 | + - id: detect-private-key |
| 21 | + - id: end-of-file-fixer |
| 22 | + exclude_types: [json, sql] |
| 23 | + - id: file-contents-sorter |
| 24 | + files: ^(requirements/\w*.txt)$ |
| 25 | + args: ["--ignore-case", "--unique"] |
| 26 | + - id: fix-byte-order-marker |
| 27 | + - id: mixed-line-ending |
| 28 | + - id: trailing-whitespace |
29 | 29 |
|
30 | | - - repo: https://github.com/asottile/pyupgrade |
31 | | - rev: "v3.19.0" |
32 | | - hooks: |
33 | | - - id: pyupgrade |
34 | | - args: [--py312] |
| 30 | + - repo: https://github.com/asottile/pyupgrade |
| 31 | + rev: "v3.19.0" |
| 32 | + hooks: |
| 33 | + - id: pyupgrade |
| 34 | + args: [--py312] |
35 | 35 |
|
36 | | - - repo: https://github.com/adamchainz/django-upgrade |
37 | | - rev: "1.22.2" |
38 | | - hooks: |
39 | | - - id: django-upgrade |
40 | | - args: [ |
41 | | - --target-version, "5.0", |
42 | | - # Trac needs psycopg2 |
43 | | - # https://github.com/adamchainz/django-upgrade?tab=readme-ov-file#databases |
44 | | - --skip, "settings_database_postgresql", |
45 | | - ] |
| 36 | + - repo: https://github.com/adamchainz/django-upgrade |
| 37 | + rev: "1.22.2" |
| 38 | + hooks: |
| 39 | + - id: django-upgrade |
| 40 | + args: [ |
| 41 | + --target-version, |
| 42 | + "5.0", |
| 43 | + # Trac needs psycopg2 |
| 44 | + # https://github.com/adamchainz/django-upgrade?tab=readme-ov-file#databases |
| 45 | + --skip, |
| 46 | + "settings_database_postgresql", |
| 47 | + ] |
46 | 48 |
|
47 | | - - repo: https://github.com/psf/black |
48 | | - rev: 24.10.0 |
49 | | - hooks: |
50 | | - - id: black |
| 49 | + - repo: https://github.com/psf/black |
| 50 | + rev: 24.10.0 |
| 51 | + hooks: |
| 52 | + - id: black |
51 | 53 |
|
52 | | - - repo: https://github.com/rbubley/mirrors-prettier |
53 | | - rev: "v3.4.1" |
54 | | - hooks: |
55 | | - - id: prettier |
56 | | - exclude_types: [html, css, javascript, json, scss] |
| 54 | + - repo: https://github.com/rbubley/mirrors-prettier |
| 55 | + rev: "v3.4.1" |
| 56 | + hooks: |
| 57 | + - id: prettier |
| 58 | + exclude_types: [html, css, javascript, json, scss] |
0 commit comments