-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
49 lines (48 loc) · 1.38 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
# make sure **ALL** tools here are in pyproject.toml as:
# - listed as dev-dependencies
# - version specifiers are **EXACTLY** the same
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.6
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
args:
- --follow-imports=silent
- --show-column-numbers
- --ignore-missing-imports
- --warn-unreachable
- --install-types
- --non-interactive
- --check-untyped-defs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 # https://github.com/pre-commit/pre-commit-hooks/releases
hooks:
- id: check-added-large-files
args:
- '--maxkb=1024' # 1MB file limit
- id: check-ast
language: python
- id: check-case-conflict
language: python
- id: check-json
language: python
- id: check-merge-conflict
language: python
- id: check-shebang-scripts-are-executable
language: python
- id: check-symlinks
language: python
- id: check-toml
language: python
- id: check-yaml
language: python
args:
- '--allow-multiple-documents'