-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdb.py
More file actions
106 lines (100 loc) · 2.88 KB
/
db.py
File metadata and controls
106 lines (100 loc) · 2.88 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
from typing import TypeAlias, TypedDict
class RepoInfo(TypedDict):
repo: str
rev: str
PackageRepoMapping: TypeAlias = dict[str, RepoInfo]
DEPENDENCY_MAPPING: PackageRepoMapping = {
"autopep8": {
"repo": "https://github.com/hhatto/autopep8",
"rev": "v${rev}",
},
"bandit": {
"repo": "https://github.com/PyCQA/bandit",
"rev": "${rev}",
},
"black": {
"repo": "https://github.com/psf/black-pre-commit-mirror",
"rev": "${rev}",
},
"check-jsonschema": {
"repo": "https://github.com/python-jsonschema/check-jsonschema",
"rev": "${rev}",
},
"codespell": {
"repo": "https://github.com/codespell-project/codespell",
"rev": "v${rev}",
},
"commitizen": {
"repo": "https://github.com/commitizen-tools/commitizen",
"rev": "v${rev}",
},
"djade": {
"repo": "https://github.com/adamchainz/djade-pre-commit",
"rev": "${rev}",
},
"djhtml": {
"repo": "https://github.com/rtts/djhtml",
"rev": "${rev}",
},
"docformatter": {
"repo": "https://github.com/PyCQA/docformatter",
"rev": "${rev}",
},
"flake8": {
"repo": "https://github.com/pycqa/flake8",
"rev": "${rev}",
},
"flakeheaven": {
"repo": "https://github.com/flakeheaven/flakeheaven",
"rev": "${rev}",
},
"isort": {
"repo": "https://github.com/pycqa/isort",
"rev": "${rev}",
},
"mypy": {
"repo": "https://github.com/pre-commit/mirrors-mypy",
"rev": "v${rev}",
},
"pdm": {
"repo": "https://github.com/pdm-project/pdm",
"rev": "${rev}",
},
"poetry": {
"repo": "https://github.com/python-poetry/poetry",
"rev": "${rev}",
},
"pycln": {
"repo": "https://github.com/hadialqattan/pycln",
"rev": "v${rev}",
},
"pyroma": {
"repo": "https://github.com/regebro/pyroma",
"rev": "${rev}",
},
"pyupgrade": {
"repo": "https://github.com/asottile/pyupgrade",
"rev": "v${rev}",
},
"rtscheck": {
"repo": "https://github.com/rstcheck/rstcheck",
"rev": "v${rev}",
},
"ruff": {
"repo": "https://github.com/astral-sh/ruff-pre-commit",
"rev": "v${rev}",
},
"sync-pre-commit-lock": {
"repo": "https://github.com/GabDug/sync-pre-commit-lock",
"rev": "v${rev}",
},
"yamllint": {
"repo": "https://github.com/adrienverge/yamllint",
"rev": "v${rev}",
},
}
REPOSITORY_ALIASES: dict[str, tuple[str, ...]] = {
"https://github.com/astral-sh/ruff-pre-commit": ("https://github.com/charliermarsh/ruff-pre-commit",),
"https://github.com/psf/black-pre-commit-mirror": ("https://github.com/psf/black",),
"https://github.com/hhatto/autopep8": ("https://github.com/pre-commit/mirrors-autopep8",),
}