-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
44 lines (43 loc) · 1.13 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
default_language_version:
python: python3.11
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.41.0
hooks:
- id: commitizen
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.41.0
hooks:
- id: commitizen
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-byte-order-marker
- id: check-docstring-first
- id: check-merge-conflict
- id: check-added-large-files
- id: check-yaml
- id: check-ast
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- repo: local
hooks:
- id: lint
name: Run linter
entry: poetry run ruff check .
language: system
verbose: true
pass_filenames: false
- id: mypy
name: Run mypy
entry: poetry run mypy .
language: system
verbose: true
pass_filenames: false
- id: tests
name: Run tests
entry: bash -c 'cd tests && PYTHONPATH=.. poetry run pytest'
language: system
verbose: true
pass_filenames: false