forked from pypatterns/python-cqrs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
79 lines (79 loc) · 1.82 KB
/
.pre-commit-config.yaml
File metadata and controls
79 lines (79 loc) · 1.82 KB
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
71
72
73
74
75
76
77
78
79
repos:
- hooks:
- id: check-toml
- id: check-docstring-first
- id: check-ast
- exclude: (^tests/mock/|^tests/integration/|^tests/fixtures)
id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- args:
- --pytest-test-first
exclude: (^tests/mock/|^tests/integration/|^tests/fixtures)
id: name-tests-test
- id: check-merge-conflict
- id: check-json
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
- hooks:
- id: add-trailing-comma
repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
- hooks:
- args:
- --autofix
- --indent
- '2'
files: ^.*\.yaml$
id: pretty-format-yaml
- args:
- --autofix
- --indent
- '2'
id: pretty-format-toml
repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
- hooks:
- id: toml-sort
- id: toml-sort-fix
repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
- hooks:
- id: pycln
name: pycln
entry: pycln ./
language: system
repo: local
- hooks:
- id: upgrade-type-hints
repo: https://github.com/sondrelg/pep585-upgrade
rev: v1.0.1
- hooks:
- id: ruff
args: [--fix]
- id: ruff-format
repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.380
hooks:
- id: pyright
types: [python]
- repo: local
hooks:
- id: pytest-unit
name: unit tests
entry: pytest -c ./tests/pytest-config.ini ./tests/unit
language: system
types: [python]
pass_filenames: false
always_run: true
- id: pytest-integration
name: integration tests
entry: pytest -c ./tests/pytest-config.ini ./tests/integration
language: system
types: [python]
pass_filenames: false
always_run: true