-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
69 lines (69 loc) · 2.31 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
69 lines (69 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default_language_version:
node: system
python: python3.13
repos:
- repo: https://github.com/python/black
rev: 26.5.1
hooks:
- id: black
# Migrations are intentionally left unformatted; CI excludes them too
exclude: '(^|/)migrations/'
- repo: https://github.com/PyCQA/isort
rev: '8.0.1'
hooks:
- id: isort
# Migrations are intentionally left unformatted; CI excludes them too
exclude: '(^|/)migrations/'
- repo: https://github.com/pycqa/flake8
# flake8 config is in setup.cfg
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-eslint
# Held below v9: eslint-config-torchbox@^1.1.0 has no ESLint v9 flat-config support.
# The actual eslint version is pinned via additional_dependencies (eslint@8.57.1).
rev: v8.56.0
hooks:
- id: eslint
additional_dependencies:
- eslint@8.57.1
- eslint-config-airbnb@19.0.4
- eslint-config-prettier@8.10.2
- eslint-config-torchbox@1.1.0
- eslint-plugin-import@2.32.0
- eslint-plugin-jsx-a11y@6.10.2
- eslint-plugin-react@7.37.5
- eslint-plugin-react-hooks@4.6.2
- '@babel/core@7.29.7'
- '@babel/preset-env@7.29.7'
- '@babel/preset-react@7.29.7'
- '@babel/eslint-parser@7.29.7'
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.4
hooks:
- id: prettier
types_or: [markdown, css, scss, javascript, json, yaml]
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
rev: 0.0.2
hooks:
- id: stylelint
additional_dependencies:
- stylelint@17.13.0
- stylelint-config-torchbox@5.0.0
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.30.0
hooks:
- id: django-upgrade
args: [--target-version, '5.2'] # Replace with Django version
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
- repo: https://github.com/python-poetry/poetry
rev: '1.8.5' # keep version in sync with version installed in the Dockerfile
hooks:
- id: poetry-check
- id: poetry-lock
# Never update dependencies and only run on changes to pyproject.toml
args: [--no-update]
files: ^pyproject.toml$