-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (40 loc) · 1.25 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
ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_commit_msg: "style: pre-commit fixes"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
exclude: ^.idea/
hooks:
- id: check-added-large-files
args:
- --maxkb=16384
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
# Mypy runs without local dependencies, so we disable some strict-mode flags
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
exclude: tests
args:
- --allow-subclassing-any
- --no-warn-return-any
- --ignore-missing-imports
- --allow-untyped-decorators
additional_dependencies: [tokenize-rt==3.2.0, pydantic==1.10.13]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.284
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
# It is recommended to specify the latest version of Python supported by your project here
language_version: python3.10