/
.pre-commit-config.yaml
33 lines (33 loc) · 1.06 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
args:
- "--fix=lf"
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args:
- "--allow-multiple-documents"
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.18.4
hooks:
- id: commitizen
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.3
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/python-poetry/poetry
rev: 1.6.0
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: [ "--without-hashes", "-o", "requirements.txt" ]