-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
48 lines (42 loc) · 1.46 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
ci:
skip:
# Cannot access poetry on pre-commit.ci
- python-safety-dependencies-check
- poetry-lock
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: check-json
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pycqa/bandit
rev: 1.8.0
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.3.3
hooks:
- id: python-safety-dependencies-check
files: pyproject.toml
# Ignore some issues in sub-dependencies:
# - https://data.safetycli.com/v/64396/97c/ | django-helusers -> python-jose -> ecdsa
# - https://data.safetycli.com/v/64459/97c/ | django-helusers -> python-jose -> ecdsa
# - https://data.safetycli.com/v/70612/97c/ | django-jinja -> jinja2
# - https://data.safetycli.com/v/70715/97c/ | django-helusers -> python-jose
# - https://data.safetycli.com/v/70716/97c/ | django-helusers -> python-jose
args: ["--ignore=64396,64459,70612,70715,70716"]
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
- id: poetry-check
- id: poetry-lock