-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
95 lines (84 loc) · 2.55 KB
/
pyproject.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
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
[project]
name = "docs"
version = "0.1.0"
description = "The Python framework for Data Applications"
license = {file = "LICENSE"}
authors = [
{name = "Rodolphe Barbanneau"},
]
requires-python = ">=3.11"
dependencies = [
"plateforme[all]",
"griffe-autodocstringstyle @ git+https://{env:GH_TOKEN:?}@github.com/pawamoy-insiders/griffe-autodocstringstyle.git",
"griffe-sphinx @ git+https://{env:GH_TOKEN:?}@github.com/pawamoy-insiders/griffe-sphinx.git",
"mike",
"mkdocs",
"mkdocs-autorefs",
"mkdocs-awesome-pages-plugin",
"mkdocs-git-authors-plugin",
"mkdocs-git-committers-plugin-2",
"mkdocs-git-revision-date-localized-plugin",
"mkdocs-macros-plugin",
"mkdocs-material[imaging] @ git+https://{env:GH_TOKEN:?}@github.com/squidfunk/mkdocs-material-insiders.git",
"mkdocs-redirects",
"mkdocstrings",
"mkdocstrings-python",
"python-dotenv",
"pytkdocs",
"termynal",
"watchdog",
]
[project.optional-dependencies]
reference = [
"fastapi",
"pydantic",
"pydantic_core",
"sqlalchemy",
"starlette",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["scripts"]
[tool.hatch.envs.default]
installer = "uv"
path = ".venv"
[tool.hatch.envs.default.scripts]
setup = "mkdir -p public"
build = ["setup", "mkdocs build {args}"]
deploy = ["setup", "mike deploy {args}"]
serve = ["setup", "mkdocs serve {args}"]
serve-versions = ["setup", "mike serve {args}"]
[[tool.hatch.envs.dev.matrix]]
mode = [
"minimal",
"with-pkg",
"with-pkg-local",
"with-ref",
"with-ref-local",
"prelaunch",
"prelaunch-local",
]
[tool.hatch.envs.dev.overrides]
matrix.mode.dependencies = [
{ value = "docs[reference] @ .", if = ["with-ref", "with-ref-local", "prelaunch", "prelaunch-local"] },
{ value = "plateforme[all] @ {env:PLATEFORME:file:///PLATEFORME_UNSET}", if = ["with-pkg-local", "with-ref-local", "prelaunch-local"] },
]
matrix.mode.env-vars = [
{ key = "PACKAGES_PATH", value = "..", if = ["with-pkg", "with-pkg-local", "prelaunch", "prelaunch-local"] },
{ key = "PLUGINS_MKDOCSTRINGS", value = "TRUE", if = ["with-ref", "with-ref-local", "prelaunch", "prelaunch-local"] },
]
[tool.hatch.envs.prod]
dev-mode = false
dependencies = ["docs[reference] @ ."]
[tool.hatch.envs.prod.env-vars]
PACKAGES_PATH = "../packages"
PLUGINS_GIT_COMMITTERS = "TRUE"
PLUGINS_GIT_DATE = "FALSE"
PLUGINS_MKDOCSTRINGS = "TRUE"
PLUGINS_OPTIMIZE = "TRUE"
[tool.ruff.lint]
ignore = ["E402"]