-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (128 loc) · 3.37 KB
/
pyproject.toml
File metadata and controls
148 lines (128 loc) · 3.37 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tmeasures"
version = "1.3.0"
description = "Invariance, Same-Equivariance and other measures for Neural Networks. Support for PyTorch."
keywords=["transformational", "measures", "equivariance", "same-equivariance", "invariance", "variance", "neural networks", "python", "pytorch", "numpy"]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"numpy>=2.2.0",
"matplotlib>=3.10.0",
"scipy",
"scikit-image>=0.25.0",
"scikit-learn",
"statsmodels>=0.14.4",
"tqdm>=4.67.1",
"graphviz>=0.21",
]
[dependency-groups]
dev = [
"torch>=2",
"torchvision",
"pandas-stubs>=2.2.3.250308",
"scipy-stubs>=1.15.2.1",
"microsoft-python-type-stubs",
"jupyter>=1.1.1",
"pytest>=8.4.1",
"tmeasures",
"types-tqdm>=4.67.0.20250401",
"pre-commit>=4.2.0",
"poethepoet>=0.35.0",
"data-science-types",
"poutyne",
"ipython>=9.0.2",
"tinyimagenet>=0.9.9",
"pytest-watcher>=0.4.3",
]
docs = [
"sphinx>=8.2.3",
"sphinx-design>=0.6.1",
"sphinx-prompt>=1.10.0",
"numpydoc>=1.9.0",
"sphinx-gallery>=0.19.0",
"pydata-sphinx-theme>=0.16.1",
"sphinx-autobuild>=2024.10.3",
"sphinx-autodoc-typehints>=3.2.0",
]
export = [
"graphviz>=0.21",
]
[project.urls]
"Homepage" = "https://github.com/facundoq/tmeasures"
"Bug Reports" = "https://github.com/facundoq/tmeasures/issues"
"Source" = "https://github.com/facundoq/tmeasures"
"Documentation" = "https://tmeasures.readthedocs.io/"
"Package" = "https://pypi.org/project/tmeasures/"
[project.optional-dependencies]
torch=[
"torch>=2",
"torchvision",
]
dev = [
"ipython",
]
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple/"
publish-url = "https://pypi.org/legacy/"
[tool.uv]
default-groups = ["dev", "docs"]
[tool.uv.sources]
microsoft-python-type-stubs = { git = "https://github.com/microsoft/python-type-stubs.git" }
tmeasures = { workspace = true }
[tool.ruff]
line-length = 120
target-version = "py311"
exclude=[
".git",
".github",
"__pycache__",
"dist",
"doc/_build",
"doc/auto_examples",
"docs",
"build",
"tmeasures/_version.py",
]
[tool.ruff.lint]
# all rules can be found here: https://beta.ruff.rs/docs/rules/
select = ["E", "F", "W", "I"]
ignore=[
# space before : (needed for how black formats slicing)
"E203",
# explicit reexport
"F401",
# fstrings with no variables
"F541",
# do not assign a lambda expression, use a def
"E731",
# do not use variables named 'l', 'O', or 'I'
"E741",
# line length
"E501"
]
[tool.ruff.lint.per-file-ignores]
# It's fine not to put the import at the top of the file in the examples
# folder.
"*/__init__.py"=["I001","E402"]
"examples/*"=["E402"]
"doc/conf.py"=["E402"]
"doc/_templates/numpydoc_docstring.py"=["F821", "W292"]
"*.ipynb" = ["ALL"]
[tool.pytest.ini_options]
addopts = "--color=yes"
doctest_optionflags = "NORMALIZE_WHITESPACE"
[tool.poe]
executor.type = "uv"
[tool.poe.tasks]
test = "uv run pytest"
cov-test = "uv run pytest --cov=tmeasures --cov-report=xml"
lint = "uvx ruff check --fix tmeasures "
format = "uvx ruff format tmeasures"
build = "uv build"
docs = "uv run sphinx-build docs docs/_build"
serve-docs = " uv run sphinx-autobuild --open-browser docs docs/_build"
precommit = "uv run pre-commit run --all-files"