-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (33 loc) · 934 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (33 loc) · 934 Bytes
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/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
require_serial: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-toml
- id: name-tests-test
- id: debug-statements
- id: fix-encoding-pragma
- id: mixed-line-ending
fix: [--auto]
- id: check-json
- repo: https://github.com/python-poetry/poetry
rev: "1.8.0" # add version here
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: ["-f", "requirements.txt", "-o", "requirements.txt"]
- id: poetry-export
args:
["--with=dev", "-f", "requirements.txt", "-o", "requirements-dev.txt"]
- id: poetry-install