-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (84 loc) · 2.56 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
[project]
name = "rico"
dynamic = ["version"]
description = """\
A Python package for creating HTML documents from rich content: \
dataframes, plots, images, markdown etc. \
It provides a high-level, easy-to-use API with reasonable defaults, \
as well as low-level access for better control.\
"""
authors = [
{name = "Evgeny Ivanov", email = "ivanov.evgeny.n@gmail.com"},
]
dependencies = []
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Text Processing",
"Topic :: Text Processing :: Markup",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Text Processing :: Markup :: Markdown",
]
[project.urls]
source = "https://github.com/e10v/rico"
"release notes" = "https://github.com/e10v/rico/releases"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
[tool.pdm.dev-dependencies]
lint = ["ruff", "pyright"]
test = ["pytest", "coverage[toml]", "markdown-it-py", "markdown", "matplotlib"]
examples = ["pandas", "altair"]
[tool.pdm.scripts]
test = "coverage run -m pytest"
lint = "ruff check ."
type = "pyright"
[tool.pdm.build]
package-dir = "src"
[tool.pdm.version]
source = "scm"
write_to = "rico/_version.txt"
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage]
[tool.coverage.run]
source = ["src/rico"]
[tool.coverage.report]
exclude_lines = ["if TYPE_CHECKING:", "pragma: no cover"]
[tool.pyright]
typeCheckingMode = "strict"
reportMissingTypeStubs = false
[tool.ruff]
select = [
"A", "ANN", "ARG", "B", "C4", "C90", "COM", "D", "DTZ", "E", "ERA", "F",
"I", "ICN", "INP", "N", "PGH", "PL", "PT", "RET", "RSE", "RUF", "Q", "SIM",
"SLF", "TCH", "TID", "TRY", "UP", "W",
]
ignore = [
"ANN101", "ANN102", "ANN204", "ANN401", "B006", "N817", "PGH003", "PT001",
"PT011", "RUF015", "SLF001", "TRY003",
]
[tool.ruff.per-file-ignores]
"tests/*" = ["ANN201", "D100", "D103", "PLR2004"]
"examples/*" = ["INP001"]
[tool.ruff.isort]
classes = ["HTML"]
force-sort-within-sections = true
lines-after-imports = 2
known-local-folder = ["rico"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.pylint]
max-args = 8