-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (31 loc) · 922 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: check-builtin-literals
- id: check-case-conflict
- id: check-toml
- id: check-yaml
- id: check-docstring-first
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.5
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/python-poetry/poetry
rev: '2.1.2'
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-install
- repo: https://github.com/python-poetry/poetry-plugin-export
rev: '1.9.0'
hooks:
- id: poetry-export
args: ["-f", "requirements.txt", "--output", "requirements.txt", "--without-hashes", "--without=dev"]