-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (140 loc) · 3.65 KB
/
pyproject.toml
File metadata and controls
156 lines (140 loc) · 3.65 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
[build-system]
requires = ["setuptools>=77.0.3", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[project]
name = "brainprep"
readme = "README.rst"
requires-python = ">=3.12"
authors = [{name = "brainprep developers"}]
license = "CECILL-B"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Console",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
dependencies = [
"numpy",
"nibabel",
"pandas",
"scikit-learn",
"nilearn",
"matplotlib",
"seaborn",
"progressbar2",
"requests",
"decorator",
"Jinja2",
"fire",
"lxml",
"rich",
]
dynamic = ["version"]
[project.scripts]
brainprep = "brainprep.cli:main"
[project.optional-dependencies]
dev = [
"nilearn[ci,doc]"
]
ci = [
"codespell",
"pycodestyle",
"pydoclint",
"ruff",
"pynose",
"coverage",
"coveralls",
"scikit-learn",
"matplotlib",
"seaborn",
]
doc = [
"setuptools",
"pysphinxdoc @ git+https://github.com/AGrigis/pysphinxdoc.git@dev",
]
[project.urls]
Development = "https://github.com/brainprepdesk/brainprep"
issues = "https://github.com/brainprepdesk/brainprep/issues"
homepage = "https://brainprepdesk.github.io/brainprep/stable"
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "brainprep._version.__version__"}
[tool.setuptools.packages.find]
exclude = ["doc"]
namespaces = false
[tool.setuptools.package-data]
brainprep = [
"tests/*.py",
"resources/*.m",
"resources/*.nii.gz",
"resources/*.csv",
"resources/*.tsv",
]
[tool.ruff]
preview = true
extend-exclude = [
"tests",
]
line-length = 79
[tool.ruff.lint]
extend-select = [
"E",
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"PYI", # flake8-pyi
"SIM", # flake8-simplify
"FLY", # flynt
"I", # isort
"N", # pep8-naming
"PERF", # Perflint
"PGH", # pygrep-hooks
"UP", # pyupgrade
"FURB", # refurb
"RUF",
"W293", # blank-line-with-whitespace
"W291", # trailing whitespace
"E203", # whitespace before ':'
"E501", # line too long (226 > 79 characters)
]
ignore = [
"D401", # First line of docstring should be in imperative mood
"D205", # 1 blank line required between summary line and description
"D200", # One-line docstring should fit on one line
"D210", # whitespaces allowed surrounding docstring text
"D105", # Missing docstring in magic method
"RUF001", # String contains ambiguous `ℹ` (INFORMATION SOURCE)
"FURB189", # `dict` can be error prone, use `collections.UserDict`
"RUF067", # `__init__` module should only contain docstrings and re-exports
]
select = ["D"] # enable pycodestyle and docstring rules
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
[tool.build_sphinx]
source-dir = "doc"
build-dir = "doc/build"
all_files = "1"
[tool.codespell]
builtin = "clear,rare,en-GB_to_en-US"
ignore-words = "./.github/codespellignore.txt"
skip = "./.git,*.bib,./brainprep/resources/*,./AUTHORS.rst"
quiet-level = 2
[tool.pydoclint]
style = "numpy"
require-return-section-when-returning-nothing = false
check-arg-order = true
check-return-types = true
check-class-attributes = true
check-style-mismatch = true
check-arg-defaults = false
skip-checking-raises = false
treat-property-methods-as-class-attributes = true
should-document-private-class-attributes = true