forked from procrastinate-org/procrastinate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
68 lines (67 loc) · 1.92 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
67
68
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: v4.6.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.376
hooks:
- id: pyright
additional_dependencies:
- aiopg==1.4.0
- anyio==4.4.0
- asgiref==3.8.1
- attrs==24.2.0
- contextlib2==21.6.0
- croniter==3.0.3
- django-stubs==5.0.4
- django==4.2.15
- importlib-resources==6.4.3
- psycopg2-binary==2.9.9
- psycopg[pool]==3.2.1
- python-dateutil==2.9.0.post0
- sphinx==7.1.2
- sqlalchemy==2.0.32
- typing-extensions==4.12.2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
- id: ruff-format
- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
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']