-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
82 lines (68 loc) · 1.49 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "logbesselk"
version = "3.4.0"
description = "Provide function to calculate the modified Bessel function of the second kind"
license = "Apache-2.0"
authors = [
{ name = "TAKEKAWA Takashi", email = "[email protected]" }
]
readme = "README.md"
repository = "https://github.com/tk2lab/logbesselk"
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.10"
dependencies = [
]
[project.optional-dependencies]
jax = [
"jax",
"jaxlib",
]
jaxcuda = [
"jax[cuda12]",
"jaxlib",
]
tensorflow = [
"tensorflow>=2.8",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.envs.default]
installer = "uv"
python = "3.12"
dependencies = [
"pandas",
"pytest",
]
[tool.hatch.envs.jax]
features = ["jax"]
[tool.hatch.envs.jax.env-vars]
JAX_PLATFORMS = "cpu"
[tool.hatch.envs.jaxcuda]
template = "jax"
features = ["jaxcuda"]
[tool.hatch.envs.jaxcuda.env-vars]
JAX_PLATFORMS = "cuda"
CUDA_LAUNCH_BLOCKING = "1"
[tool.pytest.ini_options]
markers = [
"vec",
]
[tool.ruff]
target-version = "py310"
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "W", "N", "I"]
[ttol.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
split-on-trailing-comma = true