-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
84 lines (76 loc) · 2.43 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
[build-system]
requires = ["maturin>=1.8,<2.0"]
build-backend = "maturin"
[project]
name = "bosing"
dynamic = ["version", "authors", "description", "license", "keywords"]
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
]
dependencies = ["matplotlib>=3.5.0", "numpy>=1.19.3"]
[project.urls]
Documentation = "https://bosing.readthedocs.io"
Issues = "https://github.com/kahojyun/Bosing/issues"
Source = "https://github.com/kahojyun/Bosing"
[tool.maturin]
python-source = "python/src"
module-name = "bosing._bosing"
manifest-path = "bosing-py/Cargo.toml"
features = ["pyo3/extension-module"]
[dependency-groups]
dev = ["taskipy>=1.13.0", "scipy>=1.9.3"]
ci = [
"basedpyright>=1.22.0",
"mypy>=1.11.2",
"ruff>=0.6.7",
"rich>=13.9.2",
"pytest>=8.3.3",
]
docs = ["furo>=2024.8.6", "sphinx>=7.4.7"]
extra = ["ipython>=8.18.1", "pyside6>=6.3"]
[tool.uv]
cache-keys = [
{ file = "src/**/*.rs" },
{ file = "bosing-py/**/*.rs" },
{ file = "pyproject.toml" },
{ file = "Cargo.toml" },
{ file = "Cargo.lock" },
{ file = "rust-toolchain.toml" },
]
[tool.taskipy.tasks]
format = "task format_py && task format_rs"
format_py = "ruff format"
format_rs = "cargo fmt --all"
lint = "task lint_py && task lint_rs"
lint_py = "ruff check && basedpyright"
lint_rs = "cargo clippy --workspace --all-targets"
test = "task test_py && task test_rs"
test_py = "pytest"
test_rs = "cargo test --workspace"
stubtest = "stubtest bosing --allowlist stubtest-allowlist.txt"
makedocs = "sphinx-build -M html python/docs python/docs/_build"
cleandocs = "sphinx-build -M clean python/docs python/docs/_build && rm -r python/docs/generated"
[tool.pytest.ini_options]
testpaths = ["python/tests"]
addopts = "--import-mode=importlib"
[tool.basedpyright]
include = ["python"]
exclude = ["**/node_modules", "**/__pycache__", "**/docs/_build"]
[[tool.basedpyright.executionEnvironments]]
root = "python/examples"
reportAny = "none"
reportMissingTypeStubs = "none"
reportUnknownArgumentType = "none"
reportUnknownVariableType = "none"
reportUnknownMemberType = "none"
reportUnknownParameterType = "none"
reportUnusedCallResult = "none"
reportMissingTypeArgument = "none"