-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (85 loc) · 1.44 KB
/
pyproject.toml
File metadata and controls
96 lines (85 loc) · 1.44 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
[project]
name="src"
version="0.1.0"
description="Project scripts for ukbiobank scaling."
author="htwangtw"
license="MIT"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"hydra-core==1.3.2",
"hydra-colorlog==1.2.0",
"hydra-submitit-launcher==1.2.0",
"lightning",
"comet_ml",
"rootutils",
"rich",
"h5py",
"pandas",
"seaborn",
"nilearn",
]
[project.optional-dependencies]
dev = [
"pytest",
"black",
"pre-commit",
"isort",
"codespell",
"ruff",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.black]
target-version = ['py311']
exclude = "src/fmri-autoreg"
line_length = 79
[tool.codespell]
skip = '*.ipynb'
ignore-words = ".github/codespell_ignore_words.txt"
[tool.isort]
profile = "black"
src_paths = [
'code/.*py',
]
line_length = 79
skip_gitignore = true
combine_as_imports = true
[tool.ruff]
exclude = [
"code/*.ipynb",
"**/__init__.py",
"**/tests/*",
"*build/",
"code/fmri-autoreg",
"tools/*/plot_*.py"
]
ignore = [
"E402",
"E501",
"F401",
"F403",
"B905",
"E731",
"E712"
]
line-length = 79
select = [
"B",
"B9",
"C",
"E",
"F",
"W",
]
[tool.ruff.mccabe]
max-complexity = 18
[tool.ruff.pycodestyle]
max-doc-length = 112
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"*_test.py" = [
"S101", # Use of `assert` detected
]