-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
117 lines (104 loc) · 2.28 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "seedbank"
description = "Common infrastructure for seeding random number generators."
authors = [
{ name = "Michael Ekstrand", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
]
requires-python = ">= 3.10"
readme = "README.md"
license = { file = "LICENSE.md" }
dynamic = ["version"]
dependencies = [
"numpy >=1.17",
"typing-extensions ~= 4.8",
]
[project.optional-dependencies]
dev = [
"setuptools>=64",
"setuptools_scm>=8",
"wheel",
"build ==1.*", # p2c: -s python-build==1
"ruff >= 0.2",
"pyright",
"copier ==9.*",
"unbeheader ~= 1.3", # p2c: -p
"ipython",
"pyproject2conda ",
"sphinx-autobuild",
]
test = [
"pytest >= 7",
"pytest-doctestplus",
"pytest-cov >=2.12",
"coverage >=5",
"pyyaml",
"toml",
]
doc = [
"sphinx >=4.2",
"sphinxext-opengraph >= 0.5",
"furo",
]
numba = ["numba"]
torch = ["torch"]
cupy = ["cupy"]
cuda11x = ["cupy-cuda11x"]
tf = ["tensorflow >=2,<3"]
jax = ["jax[cpu]>=0.4.16"]
[project.urls]
Homepage = "https://seedbank.lenksit.org"
GitHub = "https://github.com/lenskit/seedbank"
# configure build tools
[tool.setuptools.packages.find]
include = ["seedbank*"]
[tool.setuptools_scm]
version_scheme = "guess-next-dev"
# settings for generating conda environments for dev & CI, when needed
[tool.pyproject2conda]
channels = ["conda-forge"]
deps = ["just"]
[tool.coverage.run]
relative_files = true
[tool.ruff]
line-length = 100
target-version = "py310"
exclude = [
".git",
"__pycache__",
"build",
"dist",
]
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.lint.isort]
section-order = [
"future",
"standard-library",
"third-party",
"testing",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
testing = ["pytest", "hypothesis"]
[tool.mypy]
exclude = "^docs/"
[tool.pyright]
typeCheckingMode = "strict"
exclude = [
"docs/*",
]
reportMissingImports = true
reportMissingTypeStubs = false
reportUnnecessaryIsInstance = "warning"