-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (92 loc) · 2 KB
/
pyproject.toml
File metadata and controls
101 lines (92 loc) · 2 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
[tool.codespell]
builtin = "clear,rare,en-GB_to_en-US"
skip = "./.git,*.cff,*/tmp,.mypy_cache,env,venv"
[tool.mypy]
allow_redefinition = false
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = false
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = ["plotly.*", "matplotlib.*", "marimo.*", "nilearn.*"]
[tool.ruff]
indent-width = 4
line-length = 100
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.lint]
fixable = ["ALL"]
ignore = [
"B018",
"N806",
"N803",
"N802",
"D103",
"PD901",
"PLR1711",
"PLR2004",
"RUF001",
# https://github.com/astral-sh/ruff/issues/7871
# Avoid linter rules conflicting with the formatter
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812",
"COM819",
"D206",
"D300",
"E111",
"E114",
"E117",
"Q000",
"Q001",
"Q002",
"Q003",
"W191"
]
# List of all the ruff rules (includes why the rule matters)
# https://docs.astral.sh/ruff/rules/
select = [
"ARG",
"B",
"C4",
"C90",
"D",
"E",
"ERA",
"F",
"FLY",
"FURB",
"I",
"N",
"NPY",
"PERF",
"PIE",
"PTH",
"PD",
"PGH",
"PLR",
"RUF",
"SIM",
"UP",
"W"
]
unfixable = []
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.per-file-ignores]
"notebooks/**/*.py" = ["D100", "E501", "E741"]
"scripts/build.py" = ["E501", "PTH118", "PTH103", "PTH123", "PTH120"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pylint]
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-args
max-args = 15
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-branches
max-branches = 15
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-returns
max-returns = 10
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-statements
max-statements = 80