-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (122 loc) · 2.94 KB
/
pyproject.toml
File metadata and controls
142 lines (122 loc) · 2.94 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
[build-system]
requires = ["setuptools >=77.0.3", "versioneer[toml]"]
build-backend = "setuptools.build_meta"
[project]
name = "bids-validator"
dynamic = ["version"]
description = "Validator for the Brain Imaging Data Structure"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "BIDS developers", email = "bids-discussion@googlegroups.com" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.10"
dependencies = [
"acres >=0.5",
"attrs >=24.1",
"bidsschematools >=1.1",
"nibabel>=5.3.0",
"orjson>=3.11.3",
"universal_pathlib >=0.2.1",
]
[project.optional-dependencies]
cli = [
"typer >=0.15",
]
[project.urls]
Homepage = "https://github.com/bids-standard/python-validator"
[project.scripts]
bids-validator = "bids_validator.__main__:app"
bids-validator-python = "bids_validator.__main__:app"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["bids_validator*"]
[tool.setuptools.package-data]
bids_validator = ["*/*.json"]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "src/bids_validator/_version.py"
versionfile_build = "bids_validator/_version.py"
tag_prefix = ""
parentdir_prefix = ""
[tool.pytest.ini_options]
minversion = "6"
testpaths = ["src", "tests"]
log_level = "INFO"
xfail_strict = true
addopts = ["-ra", "--strict-config", "--strict-markers"]
filterwarnings = ["error", "ignore::pytest.PytestUnraisableExceptionWarning", "ignore::SyntaxWarning:datalad*"]
norecursedirs = ["data"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src", "tests"]
omit = [
"setup.py",
"*/_version.py",
]
[tool.coverage.paths]
source = [
"src/bids_validator/",
"*/site-packages/bids_validator/",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"pytest.skip",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
# Disable black
[tool.black]
exclude = ".*"
# Ruff configured in ruff.toml
[dependency-groups]
dev = [
"ipython>=8.37.0",
"ruff>=0.15.5",
]
test = [
"pytest >=8",
"pytest-cov >=5",
"coverage[toml] >=7.2",
"datalad >=1.1",
"cattrs>=24.1.3",
]
types = [
"mypy>=1.18.2",
]
[tool.mypy]
strict = true
exclude = [
"^tests/data",
]
warn_unreachable = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
[[tool.mypy.overrides]]
module = 'bids_validator._version'
ignore_errors = true
[[tool.mypy.overrides]]
module = 'datalad.*'
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = 'fsspec'
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = 'upath'
ignore_missing_imports = true