-
Notifications
You must be signed in to change notification settings - Fork 36
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.02 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/ambv/black
rev: 24.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
# We can't use the latest version due to a regression in mypy 1.7.0
# See https://github.com/python/mypy/issues/17191 for more information
rev: v1.6.1
hooks:
- id: mypy
additional_dependencies: [pytest, typing-extensions]
types: [python]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.362
hooks:
- id: pyright
additional_dependencies: [pytest, typing-extensions]
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.272
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix]