-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
130 lines (113 loc) · 2.27 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
[build-system]
requires = ["setuptools", "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 = { text = "MIT License" }
authors = [
{ name = "BIDS developers", email = "[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.9"
dependencies = [
"bidsschematools >=1.0",
]
[project.optional-dependencies]
test = [
"pytest >=8",
"pytest-cov >=5",
"coverage[toml] >=7.2",
"datalad >=1.1",
]
[project.urls]
Homepage = "https://github.com/bids-standard/python-validator"
[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]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
[tool.coverage.run]
branch = true
parallel = true
source = ["bids_validator"]
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:",
]
# Disable black
[tool.black]
exclude = ".*"
[tool.ruff]
line-length = 99
extend-exclude = ["_version.py"]
[tool.ruff.lint]
extend-select = [
"F",
"E",
"W",
"I",
"D",
"UP",
"YTT",
"S",
"BLE",
"B",
"A",
# "CPY",
"C4",
"DTZ",
"T10",
# "EM",
"EXE",
"ISC",
"ICN",
"PT",
"Q",
]
ignore = [
"ISC001",
"D105",
"D107",
"D203",
"D213",
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.extend-per-file-ignores]
"setup.py" = ["D"]
"*/test_*.py" = ["S101"]
[tool.ruff.format]
quote-style = "single"