-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
38 lines (38 loc) · 1.37 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
# see https://github.com/topics/pre-commit-hook for more
repos:
- repo: https://github.com/akaihola/darker
rev: 1.7.0
hooks:
- id: darker
args: ["--diff", "--check"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: ["--py312-plus"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.3.2'
hooks:
- id: ruff
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.7
hooks:
- id: pip-compile
name: "pip-compile: requirements.txt"
args: [pyproject.toml, --generate-hashes, --quiet, -o, requirements.txt]
files: ^(pyproject.toml|requirements.txt)$
- id: pip-compile
name: "pip-compile: requirements.dev.txt"
args: [pyproject.toml, --generate-hashes, --extra, dev, --quiet, -o, requirements.dev.txt]
files: ^(pyproject.toml|requirements.dev.txt)$
- id: pip-compile
name: "pip-compile: requirements.prod.txt"
args: [pyproject.toml, --generate-hashes, --extra, prod, --quiet, -o, requirements.prod.txt]
files: ^(pyproject.toml|requirements.prod.txt)$
- repo: https://github.com/semgrep/pre-commit
rev: 'v1.70.0'
hooks:
- id: semgrep
# See semgrep.dev/rulesets to select a ruleset and copy its URL
args: ['--config', 'tools/semgrep.yml', '--metrics=off', '--error', '--skip-unknown-extensions']