generated from alvarobartt/python-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
51 lines (48 loc) · 1.35 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.3.0"
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
args: ["--preview"]
language_version: python3
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.194"
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/jazzband/pip-tools
rev: 6.12.0
hooks:
- id: pip-compile
files: requirements/requirements.txt
args: ["--output-file=requirements/requirements.txt", "pyproject.toml"]
- id: pip-compile
files: requirements/requirements-dev.txt
args:
[
"--extra=quality",
"--output-file=requirements/requirements-dev.txt",
"pyproject.toml",
]
- id: pip-compile
files: requirements/requirements-test.txt
args:
[
"--extra=test",
"--output-file=requirements/requirements-test.txt",
"pyproject.toml",
]
- id: pip-compile
files: requirements/requirements-docs.txt
args:
[
"--extra=docs",
"--output-file=requirements/requirements-docs.txt",
"pyproject.toml",
]