-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (44 loc) · 1 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (44 loc) · 1 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
38
39
40
41
42
43
44
45
46
ci:
autofix_prs: false
skip:
# This steps run in the ci workflow. Keep in sync
- mypy
- pylint
default_language_version:
python: python3.13
repos:
- repo: https://github.com/python-poetry/poetry
rev: '2.1.3'
hooks:
- id: poetry-check
- id: poetry-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.0
hooks:
- id: ruff
args:
- --fix
- --unsafe-fixes
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: Check with mypy
entry: poetry run mypy
language: system
types:
- python
require_serial: true
- id: pylint
name: Check with pylint
entry: poetry run pylint src/**/*.py
language: system
types:
- python
require_serial: true
exclude: ^tests/.+
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-added-large-files