-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
58 lines (54 loc) · 1.43 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
name: Check JSON
- id: check-yaml
name: Check YAML
- id: check-toml
name: Check TOML
- id: check-merge-conflict
name: Check for merge conflicts
- id: check-case-conflict
name: Check for case conflicts
- id: end-of-file-fixer
name: Fix End of Files
- id: trailing-whitespace
name: Trim Trailing Whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
name: Upgrade Python syntax
args: [--py312-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.15.0
hooks:
- id: django-upgrade
name: Upgrade Django Syntax
args: [--target-version, "5.0"]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
name: Bandit Security Linter
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
- repo: local
hooks:
- id: black
name: Black Formatter
entry: black .
language: python
types: [python]
- id: isort
name: ISort Sorter
entry: isort .
language: python
types: [python]
- id: ruff
name: Ruff Linter
entry: ruff check --fix .
language: python
types: [python]