-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
70 lines (68 loc) · 1.84 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
default_language_version:
python: python3.12.4
exclude: "app/migrations/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: no-commit-to-branch
- id: check-added-large-files
- id: check-case-conflict
- id: name-tests-test
args: [--unittest]
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: detect-private-key
- id: pretty-format-json
args: [--no-sort-keys]
- id: check-docstring-first
- id: debug-statements
- id: requirements-txt-fixer
- id: check-merge-conflict
args: [--assume-in-merge]
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-yaml
- id: check-json
- id: check-xml
- id: check-toml
- id: check-ast
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
hooks:
- id: flake8
- repo: local
hooks:
- id: coverage-run
name: coverage-run
entry: poetry run coverage run
language: python
pass_filenames: false
fail_fast: true
- id: coverage-report
name: coverage-report
entry: poetry run coverage report
language: python
pass_filenames: false
fail_fast: true
- id: poetry-check
name: poetry-check
entry: poetry check
language: python
pass_filenames: false
fail_fast: true
files: ^pyproject.toml$
- id: poetry-lock
name: poetry-lock
entry: poetry lock
language: python
pass_filenames: false
fail_fast: true