-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (155 loc) · 3.77 KB
/
pyproject.toml
File metadata and controls
174 lines (155 loc) · 3.77 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
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
[build-system]
requires = [
"pdm-backend",
"acres",
"pyyaml",
]
build-backend = "pdm.backend"
[project]
name = "bidsschematools"
description = "Python tools for working with the BIDS schema."
authors = [{ name = "bids-standard developers" }]
maintainers = [
{ name = "bids-standard developers", email = "bids.maintenance@gmail.com" },
]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"acres",
"click",
"pyyaml",
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"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",
]
dynamic = ["version"]
[project.optional-dependencies]
validation = [
"jsonschema[format]",
]
dev = [
"bidsschematools[tests]",
"ruff",
]
expressions = ["pyparsing"]
render = [
"tabulate",
"pandas",
"markdown-it-py",
"pymdown-extensions>=9.2",
]
tests = [
"bidsschematools[validation,render,expressions]",
"check-jsonschema",
"codecov",
"coverage[toml]",
"pytest>6",
"pytest-cov",
"requests",
]
all = [
"bidsschematools[tests]",
]
[project.scripts]
bst = "bidsschematools.__main__:cli"
[project.urls]
Homepage = "https://github.com/bids-standard/bids-specification"
[tool.pdm.build]
excludes = [
".gitignore",
"**/.gitignore",
]
[tool.black]
exclude = "*"
[tool.pytest.ini_options]
addopts = "-ra --strict-markers --strict-config"
log_cli = true
log_cli_level = "INFO"
markers = [
"validate_schema: tests that validate the schema itself",
]
minversion = "6.0"
xfail_strict = true
[tool.coverage.paths]
source = [
"src/bidsschematools",
"**/site-packages/bidsschematools",
]
[tool.coverage.run]
parallel = true
[tool.coverage.report]
exclude_also = [
"if.*TYPE_CHECKING:",
]
# Release process:
# cd tools/schemacode
# uvx bump-my-version bump pre_label --tag
# [inspect result]
# git push upstream <current-branch> --tags
# uvx bump-my-version bump <patch|minor|major>
# git push upstream <current-branch>
[tool.bumpversion]
current_version = "1.3.0-dev"
parse = """(?x)
(?P<major>[0-9]+)
\\.(?P<minor>[0-9]+)
\\.(?P<patch>[0-9]+)
(?:-(?P<pre_label>dev))?
"""
serialize = ["{major}.{minor}.{patch}-{pre_label}", "{major}.{minor}.{patch}"]
commit = true
message = "chore: Bump schema package to {new_version}"
# Use --tag on releases
tag = false
tag_name = "schema-{new_version}"
tag_message = "Schema release {new_version}"
[tool.bumpversion.parts.pre_label]
values = ["dev", "final"]
optional_value = "final"
[[tool.bumpversion.files]]
filename = "../../src/schema/SCHEMA_VERSION"
[tool.ruff]
line-length = 99
[tool.ruff.lint]
# Recognize imports from _lazytypes as coming from typing
typing-modules = ["bidsschematools._lazytypes"]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"PLE", # pylint errors
"I", # isort
"LOG", # flake8-logging
"G", # flake8-logging-format
"Q", # flake8-quotes
"YTT", # flake8-2020
"ISC", # implicit-string-concatenation
"UP", # pyupgrade
# Intend to evaluate these for inclusion
# "PD", # pandas-vet
# "B", # flake8-bugbear (likely bugs)
# "S", # flake8-bandit (security)
# "N", # pep8-naming (naming conventions)
# "C4", # flake8-comprehensions (comprehension)
# "PLW", # pylint warnings
]
[tool.ruff.lint.extend-per-file-ignores]
"*/__init__.py" = ["F401"]
[dependency-groups]
types = [
"lxml>=6.0.2",
"mypy>=1.18.2",
"pandas-stubs>=2.2.2.240807",
"types-jsonschema>=4.25.1.20251009",
"types-pyyaml>=6.0.12.20250915",
"types-tabulate>=0.9.0.20241207",
]