forked from vemel/handsdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (155 loc) · 4.17 KB
/
Copy pathpyproject.toml
File metadata and controls
177 lines (155 loc) · 4.17 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
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
175
176
177
[project]
name = "handsdown-fork"
version = "0.1.0"
requires-python = ">=3.9"
description = "A fork of handsdown, the python docstring-based documentation generator for lazy perfectionists."
authors = [{ name = "FredHappyface" }]
license = { file = "LICENSE" }
readme = "README.md"
keywords = ["autodoc", "documentation", "generator", "markdown"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Django",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"importlib-resources",
"jinja2",
"black",
"basedpyright>=1.39.8",
"typing-extensions>=4.12.2",
]
[dependency-groups]
dev = [
"types-setuptools",
"basedpyright>=1.39.7",
"coverage>=7.6.12",
"pytest>=8.3.5",
"ruff>=0.11.0",
]
[build-system]
requires = ['setuptools']
build-backend = 'setuptools.build_meta'
[tool.setuptools.packages.find]
where = ["."]
include = ["handsdown", "handsdown.*"]
[project.scripts]
handsdown = 'handsdown.main:main'
[project.urls]
Homepage = "https://vemel.github.io/handsdown"
Documentation = "https://vemel.github.io/handsdown"
Repository = "https://github.com/vemel/handsdown"
Changelog = "https://github.com/vemel/handsdown/releases"
Issues = "https://github.com/vemel/handsdown/issues"
[tool.coverage.report]
exclude_lines = [
"if self.debug:",
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@overload",
]
ignore_errors = true
omit = ["tests/*"]
[tool.ruff]
exclude = [
".eggs",
".git",
".git-rewrite",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".venv",
".vscode",
"build",
"dist",
]
line-length = 100
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"COM812", # enforce trailing comma
"D203", #
"D212", #
"D206", # i want tabs
"D401", # imperative mood
"D1", # temporarily ignore docstrings
"ISC001",
"TCH", # type check blocks
"W191", # ignore this to allow tabs
"EXE002", # The file is executable but no shebang is present
]
fixable = ["ALL"]
unfixable = ["B"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
exclude = ["*.pyi", "examples/*", "integration/*"]
[tool.ruff.lint.per-file-ignores]
"test_*.py" = [
"ALL",
"ANN", # missing-type-annotation
"D", # missing-docstring
"S101", # use-of-assert
"N803", # argument-name-does-not-match
"PLR2004", # constant-comparison
"CPY001", # missing-copyright
"SLF001", # private-member-access
]
"conftest.py" = [
"D", # missing-docstring
"S101", # use-of-assert
"N803", # argument-name-does-not-match
"PLR2004", # constant-comparison
"CPY001", # missing-copyright
"SLF001", # private-member-access
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.basedpyright]
venvPath = "."
venv = ".venv"
typeCheckingMode = "standard"
include = ["handsdown"]
exclude = ["**/__pycache__", "tests", "typestubs"]
reportMissingImports = true
reportMissingTypeStubs = true
reportMissingTypeArgument = "error"
reportIncompatibleMethodOverride = "error"
reportIncompatibleVariableOverride = "error"
reportUnknownParameterType = "error"
# pythonVersion = "3.9"
[tool.tox]
legacy_tox_ini = """
[tox]
env_list =
py314
py313
py312
[testenv]
deps = pytest
commands = pytest tests
"""