-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
148 lines (132 loc) · 3.09 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
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "dali_renderer"
description = "Powerful rendering of your source code."
readme = "README.md"
requires-python = ">=3.7"
license = "BSD-3-Clause"
keywords = []
authors = [
{ name = "fz0x1", email = "me@fz0x1.wtf" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"beautifulsoup4~=4.11.1",
"cairocffi~=1.4.0",
"xcffib~=1.2.0",
"CairoSVG~=2.5.2",
"cffi~=1.15.1",
"cssselect2~=0.7.0",
"defusedxml~=0.7.1",
"lxml~=4.9.2",
"pycparser~=2.21",
"Pygments~=2.14.0",
"soupsieve~=2.3.2.post1",
"tinycss2~=1.2.1",
"webencodings~=0.5.1"
]
dynamic = ["version"]
[project.urls]
Documentation = "https://github.com/foozzi/dali#readme"
Issues = "https://github.com/foozzi/dali/issues"
Source = "https://github.com/foozzi/dali"
[tool.hatch.version]
path = "src/dali_renderer/__about__.py"
[tool.ruff]
target-version = "py310"
line-length = 120
unfixable = [
# Don't touch unused imports
"F401",
]
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports=true
python_version = "3.7"
strict_optional = true
check_untyped_defs = true
disallow_untyped_calls = true
follow_imports = "normal"
follow_imports_for_stubs = true
[tool.ruff.isort]
known-first-party = ["hatch", "hatchling"]
[tool.hatch.envs.default]
platforms = ["linux", "macos"]
[tool.hatch.envs.test]
detached = true
dependencies = [
"pytest",
"pytest-cov",
]
[tool.hatch.envs.default.scripts]
test = "pytest"
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=dali_renderer"
no-cov = "cov --no-cov {args}"
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310", "311"]
[tool.hatch.envs.doc]
detached = true
dependencies = [
"pdoc"
]
[tool.hatch.envs.doc.scripts]
gen = "pdoc --show-source --logo ../static/logo.png --search ./src/dali_renderer -o ./docs"
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black>=22.6.0",
"mypy>=0.990",
"ruff>=0.0.202",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --config-file pyproject.toml --show-column-numbers --non-interactive {args:src/dali_renderer}"
style = [
"ruff {args:src/dali_renderer}",
"black --check --diff {args:.}",
]
fmt = [
"black {args:.}",
"ruff --fix {args:src/dali_renderer}",
"style",
]
all = [
"typing",
"style"
]
[tool.hatch.build.targets.sdist]
exclude = [
"/.*",
"/tests",
"/pytest.ini",
"/docs",
"/static"
]
[tool.hatch.build]
dev-mode-dirs = ["."]
artifacts = [
"/assets"
]
[tool.coverage.run]
branch = true
parallel = true
omit = [
"src/dali_renderer/__about__.py",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]