-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (90 loc) · 2.69 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
98
99
100
101
102
103
104
[build-system]
requires = ["setuptools>=70", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "funtracks"
dynamic = ["version"]
description = "Cell tracking data model"
readme = "README.md"
license = { text = "BSD 3-Clause License" }
requires-python = ">=3.10"
authors = [
{ name = "Caroline Malin-Mayor", email = "malinmayorc@janelia.hhmi.org" },
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies =[
"numpy",
"pydantic",
"networkx",
"psygnal",
"scikit-image",
]
[project.optional-dependencies]
testing =["pytest", "pytest-cov"]
docs = ["mkdocs-material", "mike", "mkdocstrings[python]", "mkdocs-api-autonav"]
dev = ["ruff", "pre-commit", "mypy"]
all = ["funtracks[testing,docs,dev]"]
[project.urls]
"Bug Tracker" = "https://github.com/funkelab/funtracks/issues"
"Documentation" ="https://funkelab.github.io/funtracks/"
[tool.setuptools_scm]
[tool.ruff]
line-length = 88
target-version = "py310"
fix = true
src = ["src"]
[tool.ruff.lint]
select = [
"E", "F", "W", #flake8
"UP", # pyupgrade
"I", # isort
"BLE", # flake8-blind-exception
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PIE", # flake8-pie
"SIM", # flake8-simplify
]
ignore = [
"UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this.
"ISC001", # implicit string concatenation
"E501", # line too long
]
unfixable = [
"B905", # currently adds strict=False to zips. Should add strict=True (manually)
]
# https://docs.astral.sh/ruff/formatter/
[tool.ruff.format]
[tool.mypy]
ignore_missing_imports = true
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["osx-arm64"]
[tool.pixi.pypi-dependencies]
funtracks = { path = ".", editable = true }
[tool.pixi.environments]
default = { solve-group = "default" }
dev = { features = ["dev"], solve-group = "default" }
docs = { features = ["docs"], solve-group = "default" }
testing = { features = ["testing"], solve-group = "default" }
[tool.pixi.tasks]
[tool.pixi.feature.testing.tasks]
test = "pytest --cov=funtracks tests/"