-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (64 loc) · 1.58 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
[build-system]
requires = ["setuptools >= 61.1.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["imputax"]
[project]
name = "Imputax"
description = "Missing value imputation algoirithms implemented with Jax."
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "Kei Ishikawa"},
{email = "[email protected]"},
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.24.1",
"jax>=0.4.8",
"jaxtyping",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"isort",
"black[jupyter]",
"beartype",
"ruff",
"mypy",
"pytest",
"pytest-cov",
"pytest-sugar",
]
[tool.setuptools.dynamic]
version = {attr = "imputax.version.__version__"}
[tool.black]
line-length = 100
target-version = ["py310"]
src_paths = ["imputax", "test", "example"]
[tool.isort]
profile = "black"
line_length = 100
[tool.ruff]
line-length = 100
ignore = ["F722"] # for jaxtyping
ignore-init-module-imports = true
[tool.ruff.per-file-ignores]
# "__init__.py" = ["F401"]
[tool.mypy]
files = ["imputax", "test"]
python_version = "3.10"
warn_unused_configs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
strict_equality = true
strict_concatenate = true
no_implicit_reexport = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["test"]
ddopts = "--jaxtyping-packages=imputax,beartype.beartype(conf=beartype.BeartypeConf(strategy=beartype.BeartypeStrategy.On))"