-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
180 lines (161 loc) · 3.67 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "hatch-vcs"]
[project]
authors = [{name = "eye2bids developers"}]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
dependencies = [
"numpy",
"pandas>2.0",
"pyaml",
"rich_argparse",
"rich"
]
description = "eyetracking data bids converter in Python"
dynamic = ["version"]
license = {text = "MIT"}
name = "eye2bids"
readme = "README.md"
requires-python = ">=3.9"
[project.optional-dependencies]
# A combination of dependencies useful for developers
dev = [
"eye2bids[test,doc]",
"isort",
"black",
"flake8",
"flake8-use-fstring",
"flake8-functions",
"flake8-docstrings",
'codespell',
'tomli',
'pre-commit'
]
# Requirements necessary for building the documentation
doc = [
"myst-parser",
"numpydoc",
"sphinx",
"sphinx-copybutton"
]
# For running unit and docstring tests
test = [
"requests",
"coverage",
"pytest",
"pytest-cov"
]
[project.scripts]
eye2bids = "eye2bids._cli:cli"
[tool.black]
line-length = 90
[tool.codespell]
ignore-words = ".github/codespell_ignore_words.txt"
skip = "./.git,.mypy_cache,env,venv,*/tmp,./doc/_build"
[tool.hatch.build.hooks.vcs]
version-file = "eye2bids/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["eye2bids"]
[tool.hatch.version]
source = "vcs"
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
plugins = [
"numpy.typing.mypy_plugin"
]
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"rich.*",
"pandas",
"pytest",
"rich_argparse",
"eye2bids._version"
]
[[tool.mypy.overrides]]
ignore_errors = true
module = [
'tests.*'
]
[tool.pytest.ini_options]
addopts = "-ra --strict-config --strict-markers -q -vv --cov eye2bids --durations=0"
norecursedirs = "data"
testpaths = ["tests/"]
[tool.ruff]
include = ["pyproject.toml", "eye2bids/**/*.py", "tools/**/*.py"]
indent-width = 4
line-length = 90
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
fixable = ["ALL"]
ignore = [
"D205",
"N802",
"N806"
]
# List of all the ruff rules (includes why the rule matters)
# https://docs.astral.sh/ruff/rules/
select = [
"ARG",
"B",
"C4",
"C90",
"D",
"E",
"ERA",
"F",
"FLY",
"I",
"N",
"NPY",
"PERF",
"PTH",
"PD",
"PLR",
"RUF",
"SIM",
"UP",
"W"
]
unfixable = []
[tool.ruff.lint.mccabe]
max-complexity = 21
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = ["D100", "D103", "PLR2004"]
"__init__.py" = ["D100", "D104"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pylint]
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-branches
max-branches = 17
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-statements
max-statements = 71