-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (85 loc) · 2.26 KB
/
pyproject.toml
File metadata and controls
94 lines (85 loc) · 2.26 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
[project]
name = "rbc"
version = "0.1.0"
description = "Standalone implementations of the RBC protocol for anatomical and functional pre-processing."
authors = [{name = "CMI DAIR", email = "dair@childmind.org"}]
license = "MIT"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"bids2table>=2.1.2",
"nibabel>=5.3.3",
"niwrap>=0.8.3",
"niwrap-helper>=0.7.0",
]
[dependency-groups]
dev = [
"pytest>=8.3.4",
"mypy>=1.13.0",
"pre-commit>=4.0.1",
"pytest-cov>=6.0.0",
"ruff>=0.8.1",
"deptry>=0.23.0"
]
docs = ["pdoc>=15.0.0"]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
markers = [
"unit: Fast (<1s) unit tests (e.g. utilities, BIDS parsing, file operations)",
"integration: Medium (1-5 min) integration tests with small/downsampled data",
"slow: Long (30+ min) tests; skip on CI",
"full_pipeline: End-to-end workflow tests; skip on CI"
]
[tool.coverage.report]
omit = ["src/rbc/core/resources/"]
[tool.mypy]
ignore_missing_imports = true
exclude = ["src/rbc/core/bids\\.py$", "tests/unit/test_bids\\.py$"]
[tool.ruff]
line-length = 88
indent-width = 4
src = ["src"]
target-version = "py312"
extend-exclude = ["src/rbc/core/bids.py", "tests/unit/test_bids.py"]
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"E", # pycodestyle errors
"ERA", # eradicate
"F", # Pyflakes
"FA", # flake8-future-annotations
"FBT", # flake8-boolean-trap
"FURB", # refurb
"I", # isort
"N", # pep8-naming
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PERF", # Perflint
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"TCH", # flake8-type-checking
"UP", # pyupgrade
]
ignore = []
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101"]
[build-system]
requires = ["uv_build>=0.9.3,<0.10.0"]
build-backend = "uv_build"