-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
38 lines (37 loc) · 1.09 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
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 Python 3.12
entry: mypy
language: python
types: [python]
stages: [commit]
args: [--strict, --ignore-missing-imports, --allow-subclassing-any, --allow-untyped-calls, --python-version=3.12]
additional_dependencies:
- pytest
- pydantic
- types-PyYAML
require_serial: true
- 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 ]
# additional_dependencies: ["ruff"]
- id: ruff-lint
name: Ruff Lint Check
entry: poetry run ruff format --check
language: system
types: [ python ]
stages: [ commit, push ]
# additional_dependencies: ["ruff"]