-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (41 loc) · 969 Bytes
/
.pre-commit-config.yaml
File metadata and controls
44 lines (41 loc) · 969 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
34
35
36
37
38
39
40
41
42
43
44
exclude: .*migrations\/.*
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=20000']
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.6
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/python-poetry/poetry
rev: '1.4.1'
hooks:
- id: poetry-export
args: [
"-f", "requirements.txt",
"-o", "requirements.txt",
"--without-hashes"
]
# - repo: local
# hooks:
# - id: pytest
# name: pytest
# description: 'Run tests with pytest'
# entry: poetry run pytest
# language: python
# types: [python]
# require_serial: true
# pass_filenames: false
# args:
# - "-vvv"