-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
163 lines (142 loc) · 3.58 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[project]
name = "movement"
authors = [
{ name = "Nikoloz Sirmpilatze", email = "[email protected]" },
{ name = "Chang Huan Lo", email = "[email protected]" },
{ name = "Sofía Miñano", email = "[email protected]" },
]
description = "Analysis of body movement"
readme = "README.md"
requires-python = ">=3.10.0"
dynamic = ["version"]
license = { text = "BSD-3-Clause" }
dependencies = [
"numpy",
"pandas",
"h5py",
"attrs",
"pooch",
"tqdm",
"sleap-io",
"xarray[accel,viz]",
"PyYAML",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
]
[project.urls]
"Homepage" = "https://github.com/neuroinformatics-unit/movement"
"Bug Tracker" = "https://github.com/neuroinformatics-unit/movement/issues"
"Documentation" = "https://movement.neuroinformatics.dev/"
"Source Code" = "https://github.com/neuroinformatics-unit/movement"
"User Support" = "https://neuroinformatics.zulipchat.com/#narrow/stream/406001-Movement"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"coverage",
"tox",
"mypy",
"pre-commit",
"ruff",
"codespell",
"setuptools_scm",
"pandas-stubs",
"types-attrs",
"check-manifest",
"types-PyYAML",
"types-requests",
]
[project.scripts]
movement = "movement.cli_entrypoint:main"
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["movement*"]
exclude = ["tests", "docs*"]
[tool.pytest.ini_options]
addopts = "--cov=movement"
[tool.setuptools_scm]
[tool.check-manifest]
ignore = [
".yaml",
"tox.ini",
"tests/",
"tests/test_unit/",
"tests/test_integration/",
"docs/",
"docs/source/",
]
[[tool.mypy.overrides]]
module = ["pooch.*", "h5py.*", "sleap_io.*"]
ignore_missing_imports = true
[tool.ruff]
line-length = 79
exclude = ["__init__.py", "build", ".eggs"]
fix = true
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/
ignore = [
"D203", # one blank line before class
"D213", # multi-line-summary second line
]
select = [
"E", # pycodestyle errors
"F", # Pyflakes
"UP", # pyupgrade
"I", # isort
"B", # flake8 bugbear
"SIM", # flake8 simplify
"C90", # McCabe complexity
"D", # pydocstyle
"NPY201", # checks for syntax that was deprecated in numpy2.0
]
per-file-ignores = { "tests/*" = [
"D100", # missing docstring in public module
"D205", # missing blank line between summary and description
"D103", # missing docstring in public function
], "examples/*" = [
"B018", # Found useless expression
"D103", # Missing docstring in public function
"D400", # first line should end with a period.
"D415", # first line should end with a period, question mark...
"D205", # missing blank line between summary and description
] }
[tool.ruff.format]
docstring-code-format = true # Also format code in docstrings
[tool.codespell]
skip = '.git,.tox'
check-hidden = true
[tool.tox]
legacy_tox_ini = """
[tox]
requires =
tox-conda
tox-gh-actions
envlist = py{310,311,312}
isolated_build = True
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
[testenv]
conda_deps =
pytables
conda_channels =
conda-forge
extras =
dev
commands =
pytest -v --color=yes --cov=movement --cov-report=xml
"""