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.93 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.5.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.357
hooks:
- id: pyright
additional_dependencies:
- aiopg==1.4.0
- anyio==4.3.0
- asgiref==3.8.1
- attrs==23.2.0
- contextlib2==21.6.0
- croniter==2.0.5
- django-stubs==4.2.7
- django==4.2.11
- importlib-metadata==7.1.0
- importlib-resources==6.4.0
- psycopg2-binary==2.9.9
- psycopg[pool]==3.1.18
- python-dateutil==2.9.0.post0
- sqlalchemy==2.0.29
- typing-extensions==4.11.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.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.0.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']