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