-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
61 lines (54 loc) · 1.36 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
[build-system]
requires = ["hatchling", "pybind11"]
build-backend = "hatchling.build"
[project]
name = "te-toolbox"
version = "0.1.0"
authors = [{ name = "Max Mynter" }]
description = "A paper from my M.Sc. thesis about the problems of Transfer Entropy from discretized continuous time series."
readme = "README.md"
requires-python = ">=3.10, <3.13"
dependencies = ["numpy"]
[project.optional-dependencies]
dev = ["pytest", "pytest-cov", "hypothesis", "ruff", "numpy-typing", "mypy"]
legacy-tests = ["scipy", "scikit-learn", "pandas"]
analysis = ["polars", "matplotlib","seaborn", "joblib", "networkx"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = [".", "src"]
markers = ["legacy: tests that check legacy implementation consistency"]
addopts = "-m 'not legacy'"
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py310"
show-fixes = true
exclude = ["tests/legacy_implementation/thesis_package.py"]
[tool.ruff.lint]
select = [
"E",
"F",
"I",
"B",
"W",
"C90",
"N",
"D",
"UP",
"PL",
"RUF",
"C4",
"SIM",
"TCH",
]
ignore = ["D203", "D211", "D212", "D213"]
[tool.hatch.build]
packages = ["src/te_toolbox"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = true
plugins = "numpy.typing.mypy_plugin"
follow_imports = "silent"