-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (122 loc) · 3.14 KB
/
pyproject.toml
File metadata and controls
138 lines (122 loc) · 3.14 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"cffi>=1.16",
"meson>=0.64",
"ninja>=1.10",
"poetry-core>=1.9",
"setuptools>=69",
]
[tool.poetry]
name = "pysatl-core"
version = "0.0.1a0"
description = "Computation core for PySATL"
readme = "README.md"
license = "MIT"
authors = [
"Leonid Elkin <yolkinleonwork@gmail.com>",
"Mikhail Mikhailov <desiment@yandex.ru>",
]
keywords = [
"density-functions",
"distributions",
"mathematics",
"numerical-analysis",
"probability",
"random-variables",
"sampling",
"scientific-computing",
"statistics",
"symbolic-computation",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
packages = [ { include = "pysatl_core", from = "src" } ]
include = [
{ path = "src/pysatl_core/py.typed", format = "wheel" },
{ path = "src/pysatl_core/py.typed", format = "sdist" },
]
homepage = "https://github.com/PySATL/pysatl-core"
repository = "https://github.com/PySATL/pysatl-core"
urls.Issues = "https://github.com/PySATL/pysatl-core/issues"
[tool.poetry.build]
script = "src/pysatl_core/sampling/unuran/bindings/_cffi_build.py"
[tool.poetry.dependencies]
python = ">=3.12"
numpy = "^2.0.0"
scipy = ">=1.13"
cffi = "^1.16.0"
mypy_extensions = ">=1.0.0"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.6"
mypy = ">=1.12"
pytest = ">=8"
pytest-cov = ">=5"
coverage = { version = ">=7.5", extras = [ "toml" ] }
pre-commit = ">=3.6"
types-setuptools = "*"
scipy-stubs = ">=1.13.0.0"
types-cffi = ">=1.17.0.0"
[tool.poetry.group.docs.dependencies]
jupyter = "^1.1.1"
matplotlib = "^3.10.6"
sphinx = "^7.3"
sphinx-rtd-theme = "^2.0"
sphinxcontrib-napoleon = "^0.7"
sphinx-autodoc-typehints = "^2.0"
sphinx-copybutton = "^0.5"
myst-nb = "^1.3.0"
linkify-it-py = "^2.0.3"
[tool.ruff]
target-version = "py312"
line-length = 100
exclude = [ "subprojects" ]
format.line-ending = "lf"
lint.select = [ "B", "C4", "E", "F", "I", "ISC", "PIE", "SIM", "TID", "UP" ]
lint.ignore = [ "B008", "E203" ]
lint.per-file-ignores."**/__init__.py" = [ "F403" ]
lint.fixable = [ "ALL" ]
lint.unfixable = [ ]
lint.isort.combine-as-imports = true
lint.isort.force-single-line = false
lint.isort.known-first-party = [ "pysatl_core" ]
lint.isort.order-by-type = true
[tool.codespell]
skip = "subprojects/**"
[tool.pytest.ini_options]
addopts = "-q --cov=pysatl_core --cov-report=term-missing"
testpaths = [ "tests" ]
[tool.coverage.run]
source = [ "pysatl_core" ]
branch = true
parallel = true
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
]
[tool.mypy]
files = [ "src", "tests" ]
python_version = "3.12"
strict = true
warn_unused_configs = true
warn_return_any = true
disallow_untyped_defs = true
disallow_any_generics = true
no_implicit_optional = true
namespace_packages = true
explicit_package_bases = true
mypy_path = [ "src" ]
[[tool.mypy.overrides]]
module = [ "tests.*" ]
disallow_untyped_defs = false
check_untyped_defs = true
warn_return_any = false
implicit_reexport = true