|
a |
|
b/.pre-commit-config.yaml |
|
|
1 |
fail_fast: false |
|
|
2 |
default_language_version: |
|
|
3 |
python: python3 |
|
|
4 |
default_stages: |
|
|
5 |
- pre-commit |
|
|
6 |
- pre-push |
|
|
7 |
minimum_pre_commit_version: 2.16.0 |
|
|
8 |
repos: |
|
|
9 |
- repo: https://github.com/rbubley/mirrors-prettier |
|
|
10 |
rev: v3.5.3 |
|
|
11 |
hooks: |
|
|
12 |
- id: prettier |
|
|
13 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
|
|
14 |
rev: v0.11.4 |
|
|
15 |
hooks: |
|
|
16 |
- id: ruff |
|
|
17 |
args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes] |
|
|
18 |
- id: ruff-format |
|
|
19 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
|
|
20 |
rev: v5.0.0 |
|
|
21 |
hooks: |
|
|
22 |
- id: detect-private-key |
|
|
23 |
- id: check-ast |
|
|
24 |
- id: end-of-file-fixer |
|
|
25 |
- id: mixed-line-ending |
|
|
26 |
args: [--fix=lf] |
|
|
27 |
- id: trailing-whitespace |
|
|
28 |
- id: check-case-conflict |
|
|
29 |
- repo: https://github.com/pre-commit/mirrors-mypy |
|
|
30 |
rev: v1.15.0 |
|
|
31 |
hooks: |
|
|
32 |
- id: mypy |
|
|
33 |
args: [--no-strict-optional, --ignore-missing-imports] |
|
|
34 |
additional_dependencies: |
|
|
35 |
["types-setuptools", "types-requests", "types-attrs"] |
|
|
36 |
- repo: local |
|
|
37 |
hooks: |
|
|
38 |
- id: forbid-to-commit |
|
|
39 |
name: Don't commit rej files |
|
|
40 |
entry: | |
|
|
41 |
Cannot commit .rej files. These indicate merge conflicts that arise during automated template updates. |
|
|
42 |
Fix the merge conflicts manually and remove the .rej files. |
|
|
43 |
language: fail |
|
|
44 |
files: '.*\.rej$' |