-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (36 loc) · 1.2 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (36 loc) · 1.2 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: local
hooks:
- id: mypy
name: Mypy Python 3.12
entry: poetry run mypy --strict --ignore-missing-imports --allow-subclassing-any --allow-untyped-calls --explicit-package-bases .
language: system
types: [python]
stages: [commit]
# pass_filenames: false
# args: [--strict, --ignore-missing-imports, --allow-subclassing-any, --allow-untyped-calls, --python-version=3.12, --exclude='./docs/|./scripts/|./archive/']
- 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 ]
- id: ruff-check
name: Ruff Check
entry: make format
language: system
types: [ python ]
stages: [ commit, push ]