-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
68 lines (63 loc) · 1.73 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
default_stages: [pre-commit]
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-added-large-files
args: ['--maxkb=500']
- id: debug-statements
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key
- id: mixed-line-ending
args: ['--fix=lf']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:
- id: ruff
types_or: [python, pyi]
args: [
--fix,
--exit-non-zero-on-fix,
--target-version, "py312",
]
- id: ruff-format
types_or: [python, pyi]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
types_or: [python, pyi]
additional_dependencies: [
'types-setuptools',
'sqlalchemy',
'pandas-stubs',
'customtkinter',
'pillow',
'tkcalendar',
'types-python-dateutil',
"types-pillow",
]
exclude: ^(tests/|docs/)
args: [
--strict,
--ignore-missing-imports,
--check-untyped-defs,
--disallow-untyped-defs,
--no-implicit-optional,
--warn-return-any,
--warn-unused-ignores,
]
ci:
autofix_commit_msg: '🎨 [pre-commit.ci] Форматирование и автофиксы'
autoupdate_commit_msg: '⬆️ [pre-commit.ci] Обновление pre-commit хуков'
autoupdate_schedule: monthly
skip: []
submodules: false