-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (97 loc) · 2.75 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (97 loc) · 2.75 KB
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
105
106
107
108
109
110
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "img-embed-td"
dynamic = ["version"]
authors = [
{ name = "Ilan Theodoro", email = "ilan.silva@czbiohub.org" },
{ name = "Jordao Bragantini", email = "jordao.bragantini@czbiohub.org" },
]
description = "Image embedding utilities for tracksdata"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"click>=8.3.0",
"cmap>=0.6.2",
"einops>=0.8.1",
"torch>=2.9.0",
"torchvision>=0.24.0",
"tracksdata",
"transformers>=4.57.1",
]
license = "BSD-3-Clause"
[project.optional-dependencies]
test = [
"spatial-graph",
"pytest>=7.0",
"pytest-cov",
"pytest-html",
]
[project.urls]
Documentation = "https://github.com/royerlab/img-embed-td#readme"
Issues = "https://github.com/royerlab/img-embed-td/issues"
Source = "https://github.com/royerlab/img-embed-td"
[project.scripts]
img-embed-td = "img_embed_td.cli:main"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/img_embed_td/__about__.py"
# https://docs.astral.sh/ruff
[tool.ruff]
target-version = "py310"
src = ["src"]
line-length = 120
# https://docs.astral.sh/ruff/rules
[tool.ruff.lint]
pydocstyle = { convention = "numpy" }
ignore = ["E712"]
select = [
"E", # style errors
"W", # style warnings
"F", # flakes
"D417", # Missing argument descriptions in Docstrings
"I", # isort
"UP", # pyupgrade
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"A001", # flake8-builtins
"RUF", # ruff-specific rules
"TID", # flake8-tidy-imports
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D", "S"]
# https://docs.astral.sh/ruff/formatter/
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = false # default is false
# https://coverage.readthedocs.io/en/6.4/config.html
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"@njit", # numba is not supported by coverage
"@jitclass",
"@overload",
"pragma: no cover", # Have to re-enable the standard pragma
"def __repr__", # Don't complain about missing debug-only code:
"raise AssertionError",
"raise NotImplementedError",
"if TYPE_CHECKING:", # Ignore type checking
"if __name__ == .__main__.:", # Don't complain if non-runnable code isn't run:
"@(abc.)?abstractmethod", # Don't complain about abstract methods, they aren't run:
"def .*: \\.\\.\\.$", # Exclude function headers that end with "..." (type stubs)
"raise ValueError",
]
[tool.coverage.run]
source = ["src"]
branch = true
parallel = true
omit = [
"src/img_embed_td/__about__.py",
"src/img_embed_td/conftest.py",
"**/_test/*.py",
]