-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (137 loc) · 3.73 KB
/
pyproject.toml
File metadata and controls
154 lines (137 loc) · 3.73 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
[project]
name = "rlic"
version = "0.5.3" # keep version in sync with Cargo.toml
description = "A minimal Line Integral Convolution extension for NumPy, written in Rust"
license = "MIT"
license-files = [
"LICENSE_rlic",
"LICENSE_vectorplot",
]
authors = [
{ name = "C.M.T. Robert" },
]
classifiers = [
"Intended Audience :: Science/Research",
"Development Status :: 4 - Beta",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Rust",
"Programming Language :: Python :: 3",
"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 :: Free Threading :: 4 - Resilient",
"Topic :: Artistic Software",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Image Processing",
"Typing :: Typed",
]
requires-python = ">=3.10" # keep in sync with pyo3 (Cargo.toml)
dependencies = [
"exceptiongroup>=1.0.0 ; python_full_version < '3.11'", # keep in sync with typecheck dep group
"numpy>=1.22.0",
"typing-extensions>=4.1.0 ; python_full_version < '3.11'",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/neutrinoceros/rlic"
Changelog = "https://github.com/neutrinoceros/rlic/blob/main/CHANGELOG.md"
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[dependency-groups]
covcheck = [
{include-group = "test"},
"coverage[toml] ; python_version < '3.11'",
"coverage>=7.10.0",
]
test = [
"pytest>=9.0.0",
"runtime-introspect>=0.3.0",
]
typecheck = [
"exceptiongroup>=1.0.0", # keep in sync with conditional runtime dep
"basedpyright>=1.26.0",
"mypy>=1.13.0",
"pyright>=1.1.391",
]
# uv sync includes this group by default, which works in combination
# with tool.uv.sources and tool.uv.default-groups. Don't use this group
# with any other tool.
uv-only = [
"vectorplot",
]
[tool.uv]
default-groups = [
"uv-only",
]
[tool.uv.sources]
vectorplot = { git = "https://github.com/neutrinoceros/scikits-vectorplot", rev = "9175a46f7d320a187d089eda34abe7819c73984f" } # v0.2.0post5
[tool.maturin]
module-name = "rlic._core"
python-packages = ["rlic"]
python-source = "src"
exclude = [
"scratch/*",
"scripts/*",
"static/*",
"uv.lock",
".*",
"_typos.toml",
]
[tool.pytest.ini_options]
minversion = "9.0"
strict = true
addopts = ["-ra"]
filterwarnings = [
"error",
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = false
# use exclude_also to *extend* the default exclude_lines,
# and allow purely defensive code patterns
exclude_also = [
"^\\s*raise (Assertion|NotImplemented)Error\\b",
"^\\s*case _ as _?unreachable:",
]
[tool.pyright]
reportImplicitStringConcatenation = false
reportUnnecessaryTypeIgnoreComment = false # todo: drop this when Python 3.10 is EOL
reportIgnoreCommentWithoutRule = false
enableTypeIgnoreComments = true
[tool.mypy]
strict = true
show_error_codes = true
show_error_context = true
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.ruff.lint]
ignore = ["E501"]
select = [
"E",
"F",
"W",
"D", # pydocstyle
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"TCH", # flake8-type-checking
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
"NPY", # numpy specific rules
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
"scripts/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"