-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (35 loc) · 1.01 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
name: Mypy Type Check
exclude: 'tests/.*|docs/.*|scripts/.*'
entry: mypy
language: python
types: [ python ]
stages: [ commit, push ]
args: [--strict, --ignore-missing-imports, --allow-subclassing-any, --allow-untyped-calls]
additional_dependencies:
- pytest
- pydantic
- types-PyYAML
- repo: local
hooks:
- id: ruff-lint-isort
name: Ruff Lint Sort Imports
entry: poetry run ruff check --select I .
language: system
types: [ python ]
stages: [ commit, push ]
- id: ruff-lint
name: Ruff Lint Check
entry: poetry run ruff format --check
language: system
types: [ python ]
stages: [ commit, push ]