-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
63 lines (54 loc) · 1.3 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
[build-system] # see setuptools quickstart
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "relife"
version = "2.0.0"
requires-python = ">=3.11"
dependencies = [
"numpy", # 1.26.4
"scipy",
"matplotlib",
"typing-extensions",
]
[tool.setuptools.packages.find] # project structure is "flat layout"
where = ["."] # current directory for flat layout
include = ["relife*"] # ["*"] by default
[project.optional-dependencies]
dev = [
"pytest",
"pandas",
"nox",
"isort",
"black",
"pylint",
"mypy",
"no-implicit-optional",
"sphinx",
"pydata-sphinx-theme",
"sphinx-copybutton",
"sphinx-design",
"numpydoc",
"nbsphinx",
"myst-parser",
"jupyterlab",
]
[tool.isort]
profile = 'black'
[tool.pylint.format]
max-line-length = "88"
max-args = 10
disable = """
line-too-long,
"""
ignored-modules = "scipy.special"
# mypy does not recognize Tuple[Any, ...] notation (bug)
# see : https://github.com/python/mypy/issues/9459
[[tool.mypy.overrides]]
module = ["relife.typing.args"]
disable_error_code = ["misc"]
# current scipy is untyped and does not work with mypy
# see : https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
[[tool.mypy.overrides]]
module = ["scipy.*"]
ignore_missing_imports = true