-
Notifications
You must be signed in to change notification settings - Fork 0
/
hatch.toml
63 lines (59 loc) · 1.62 KB
/
hatch.toml
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
[envs.default]
dependencies = [
"freezegun==1.2.*",
"pytest-cov==4.1.*",
"pytest-benchmark==4.0.*",
"pytest==7.3.*",
"parametrize_from_file"
]
[envs.default.scripts]
test = "pytest {args:.} --benchmark-autosave"
cov-test = "pytest --cov {args:vin} --cov-report=term-missing --cov-report=xml"
[envs.lint]
dependencies = [
"ruff==0.0.290",
"black==23.9.*",
"mypy==1.5.*",
]
[envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:src/vin}"
style = [
"black --check --diff {args:.}",
"ruff {args:.}",
]
fmt = [
"black {args:.}",
"ruff --fix {args:.}",
]
[envs.docs]
dependencies = [
"mkdocs~=1.5.3",
"mkdocs-material~=9.5.1",
# Plugins
"mkdocs-minify-plugin~=0.7.1",
"mkdocs-git-revision-date-localized-plugin~=1.2.1",
"mkdocs-git-committers-plugin-2~=2.2.2",
"mkdocs-simple-hooks",
"mkdocstrings-python~=1.8.0",
"mkdocs-redirects~=1.2.1",
"mkdocs-glightbox~=0.3.5",
"mike~=2.0.0",
# Extensions
"mkdocs-click~=0.8.1",
"pymdown-extensions~=10.5.0",
# Necessary for syntax highlighting in code blocks
"pygments~=2.17.2",
# Validation
# https://github.com/linkchecker/linkchecker/pull/669#issuecomment-1267236287
"linkchecker @ git+https://github.com/linkchecker/linkchecker.git@d9265bb71c2054bf57b8c5734a4825d62505c779",
"black"
]
[envs.docs.scripts]
build = "mkdocs build --clean --strict"
serve = "mkdocs serve --dev-addr localhost:8000"
validate = "linkchecker --config .linkcheckerrc site"
# https://github.com/linkchecker/linkchecker/issues/678
build-check = [
"build --no-directory-urls",
"validate",
]