-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (36 loc) · 939 Bytes
/
.pre-commit-config.yaml
File metadata and controls
40 lines (36 loc) · 939 Bytes
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
ci:
skip: [mypy]
autoupdate_schedule: quarterly
repos:
# Syntax validation and some basic sanity checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-ast
fail_fast: True
language_version: python3.12
- id: check-json
- id: check-added-large-files
args: ['--maxkb=200']
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format
# # Linting
# - repo: https://github.com/PyCQA/flake8
# rev: 7.1.1
# hooks:
# - id: flake8
# additional_dependencies: ['flake8-comprehensions==3.8.0']
# Type checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.0
hooks:
- id: mypy
files: 'src/.*\.py$'
additional_dependencies: ['types-setuptools>=57.0.2']
language_version: python3.12