-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
174 lines (150 loc) · 3.88 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[build-system]
requires = ["hatchling"]
build-backend="hatchling.build"
[project]
name = "yardang"
authors = [{name = "the yardang authors", email = "t.paine154@gmail.com"}]
description="Easily generate sphinx documentation"
readme = "README.md"
license = { text = "Apache-2.0" }
version = "0.2.3"
requires-python = ">=3.9"
keywords = []
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"autodoc-pydantic",
"furo",
"myst-nb",
"packaging",
"rich",
"sphinx>=7.2.6,<9",
"sphinx-autoapi",
"sphinx-copybutton",
"sphinx-design",
"sphinxcontrib-mermaid>=1,<2",
"toml",
"typer",
]
[project.urls]
Repository = "https://github.com/python-project-templates/yardang"
Homepage = "https://yardang.python-templates.dev/"
[project.optional-dependencies]
develop = [
"build",
"bump-my-version",
"check-manifest",
"hatchling",
"pytest",
"pytest-cov",
"ruff",
"twine",
"wheel",
]
[project.scripts]
yardang = "yardang.cli:main"
[tool.bumpversion]
current_version = "0.2.3"
commit = true
tag = false
[[tool.bumpversion.files]]
filename = "yardang/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[tool.check-manifest]
ignore = [
".copier-answers.yml",
"docs/*",
"docs/**/*",
"Makefile",
"setup.py",
]
[tool.hatch.build]
artifacts = []
[tool.hatch.build.sources]
src = "/"
[tool.hatch.build.targets.sdist]
include = [
"/yardang",
"LICENSE",
"README.md",
]
exclude = [
"/.github",
"/.gitattributes",
"/.gitignore",
"/docs",
]
[tool.hatch.build.targets.wheel]
include = [
"/yardang",
]
exclude = [
"/.github",
"/.gitattributes",
"/.gitignore",
"/docs",
"/pyproject.toml",
]
[tool.hatch.build.targets.wheel.shared-data]
[tool.pytest.ini_options]
asyncio_mode = "strict"
testpaths = "yardang/tests"
[tool.ruff]
line-length = 150
[tool.ruff.lint]
extend-select = ["I"]
[tool.ruff.lint.isort]
combine-as-imports = true
default-section = "third-party"
known-first-party = ["yardang"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.yardang]
root = "docs/src/home.md"
cname = "yardang.python-templates.dev"
pages = [
"docs/src/overview.md",
"docs/src/installation.md",
"docs/src/configuration.md",
]
use-autoapi = true
# Below are defaults, just to ensure working
# sphinx
html_theme_options = {"switcher" = { "json_url" = "https://mysite.org/en/latest/_static/switcher.json"}}
html_static_path = ["test"]
html_css_files = []
html_js_files = []
source_suffix = []
exclude_patterns = []
language = "en"
pygments_style = "sphinx"
# myst/myst-nb
myst_enable_extensions = ["amsmath", "colon_fence", "dollarmath", "html_image"]
myst_fence_as_directive = ["mermaid"]
nb_execution_mode = "off"
nb_execution_excludepatterns = []
# autodoc/autodoc-pydantic
autodoc_pydantic_model_show_config_summary = false
autodoc_pydantic_model_show_validator_summary = false
autodoc_pydantic_model_show_validator_members = false
autodoc_pydantic_field_list_validators = false
autodoc_pydantic_field_show_constraints = false
autodoc_pydantic_model_member_order = "bysource"
autodoc_pydantic_model_show_json = true
autodoc_pydantic_settings_show_json = false
autodoc_pydantic_model_show_field_summary = false