-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
53 lines (52 loc) · 1.47 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
ci:
autoupdate_commit_msg: 'Bump `pre-commit` Dependency Versions'
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
hooks:
# Run the formatter.
- id: ruff-format
# Run the linter.
- id: ruff
args:
- --fix
- --unsafe-fixes
# Does not have support for PEP 695 generics yet
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
name: mypy
files: ^(?!(tests|changes)).*\.py$
args:
- --enable-incomplete-feature=NewGenericSyntax
additional_dependencies:
- .
- pydantic-settings~=2.3
- shortuuid~=1.0
- sphinx~=8.0
- tomlkit~=0.13
- typer~=0.12
- types-Pygments
- types-PyYAML
# pyright doesn't work well with pre-commit.ci - see
# - https://github.com/RobertCraigie/pyright-python/pull/300
# - https://github.com/RobertCraigie/pyright-python/issues/231
# - repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.382.post0
# hooks:
# - id: pyright
# name: pyright
# files: ^(?!(tests)).*\.py$
# additional_dependencies:
# - pydantic-settings~=2.3
# - shortuuid~=1.0
# - tomlkit~=0.13
# - typer~=0.12
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
args:
- --py312-plus