-
Notifications
You must be signed in to change notification settings - Fork 56
/
.pre-commit-config.yaml
66 lines (65 loc) · 1.84 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
54
55
56
57
58
59
60
61
62
63
64
65
66
ci:
skip: [pyright]
autoupdate_schedule: quarterly
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# File names
- id: check-case-conflict
# File formats
- id: pretty-format-json
- id: check-json
- id: check-toml
- id: check-yaml
# Executables
- id: check-executables-have-shebangs
exclude: dev-env
- id: check-shebang-scripts-are-executable
# Git shenanigans
- id: check-merge-conflict
- id: check-added-large-files
# Python issues
- id: check-ast
- id: debug-statements
# Whitespace
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.391
hooks:
- id: pyright
additional_dependencies:
- aiopg==1.4.0
- anyio==4.7.0
- asgiref==3.8.1
- attrs==24.3.0
- contextlib2==21.6.0
- croniter==6.0.0
- django-stubs==5.1.1
- django==5.1.4
- psycopg2-binary==2.9.10
- psycopg[pool]==3.2.3
- python-dateutil==2.9.0.post0
- sphinx==7.4.7
- sqlalchemy==2.0.36
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
- id: ruff-format
- repo: https://github.com/PyCQA/doc8
rev: v1.1.2
hooks:
- id: doc8
- repo: https://github.com/ewjoachim/poetry-to-pre-commit
rev: 2.2.0
hooks:
- id: sync-repos
args: [--map=pyright-python=pyright, --map=ruff-pre-commit=ruff]
- id: sync-hooks-additional-dependencies
args: ['--bind=pyright=main,types']