-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
97 lines (86 loc) · 2.57 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
# https://peps.python.org/pep-0517/
# https://hatch.pypa.io/latest/config/build/
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# https://peps.python.org/pep-0621/
[project]
name = "motile"
description = "Multi-Object Tracker using Integer Linear Equations"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = 'Jan Funke', email = '[email protected]' },
{ name = 'Talley Lambert', email = '[email protected]' },
{ name = 'Caroline Malin-Mayor', email = '[email protected]' },
{ name = 'Benjamin Gallusser', email = '[email protected]' },
{ name = 'Florian Jug', email = '[email protected]' },
]
dynamic = ["version"]
dependencies = ['networkx', 'ilpy>=0.4.0', 'numpy', 'structsvm']
[project.optional-dependencies]
dev = ["pre-commit", "pytest", "pytest-cov", "ruff", "twine", "build"]
test = ["pytest", "pytest-cov"]
docs = [
"ipykernel",
"jupyter_sphinx",
"sphinx_autodoc_typehints",
"sphinx_rtd_theme>1.0",
"sphinx_togglebutton",
"sphinxcontrib_jquery",
"sphinx>6",
"tomli",
"motile_toolbox",
]
[project.urls]
homepage = "https://github.com/funkelab/motile"
# https://hatch.pypa.io/latest/version/
[tool.hatch.version]
path = "motile/__init__.py"
# https://beta.ruff.rs/docs
[tool.ruff]
target-version = "py38"
src = ["motile"]
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle
"I", # isort
"UP", # pyupgrade
"RUF", # ruff specific rules
"D",
]
ignore = [
"D100", # Missing docstring in public mod
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"D102", # Missing docstring in public method
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
# https://docs.pytest.org/en/6.2.x/customize.html
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
filterwarnings = [
"error:::motile",
"ignore:ilpy.*:DeprecationWarning:structsvm",
]
# https://coverage.readthedocs.io/en/6.4/config.html
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: ${PY_MAJOR_VERSION} no cover",
"if TYPE_CHECKING:",
"\\.\\.\\.",
]
[tool.mypy]
files = "motile"
strict = true # feel free to relax this if it's annoying
allow_untyped_defs = true # TODO: can eventually fill out typing and remove this
# allow_untyped_calls = true # TODO: can eventually fill out typing and remove this
disallow_any_generics = false
ignore_missing_imports = true