-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (96 loc) · 2.43 KB
/
pyproject.toml
File metadata and controls
105 lines (96 loc) · 2.43 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
[build-system]
requires = ["setuptools>=68", "setuptools_scm[toml]>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "eegnet_repl"
requires-python = ">=3.12"
version = "1.1"
dependencies = []
[project.optional-dependencies]
dev = [
"tox",
"eegnet_repl[ds]",
"eegnet_repl[lint]",
"eegnet_repl[test]",
"eegnet_repl[doc]",
"eegnet_repl[build]",
"jupyterlab==4.4.10",
]
ds = [
"jupyterlab==4.4.10",
"numpy==2.3.4",
"pandas==2.3.3",
"matplotlib==3.10.7",
"scikit-learn==1.7.2",
"scipy==1.16.3",
"seaborn==0.13.2",
"mne==1.11.0",
"torch==2.9.1 ; extra == 'ds'",
"torchvision==0.24.1 ; extra == 'ds'",
"torchaudio==2.9.1 ; extra == 'ds'",
"kagglehub==0.4.0",
"braindecode[moabb]==1.3.2"
]
lint = [
"mypy",
"ruff",
]
test = [
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
"coverage[toml]==7.3.1",
"pytest-html==4.1.1"
]
doc = []
build = [
"build>=1.2.2",
]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 120
src = ["src"]
extend-exclude = [
"conf.py",
]
target-version = "py312"
lint.select = ["ALL"]
lint.ignore = [
"COM812", # Conflicts with the formatter
"ISC001", # Conflicts with the formatter
"ANN101", # "missing-type-self"
"PT001", # https://github.com/astral-sh/ruff/issues/8796#issuecomment-1825907715
"PT004", # https://github.com/astral-sh/ruff/issues/8796#issuecomment-1825907715
"PT005", # https://github.com/astral-sh/ruff/issues/8796#issuecomment-1825907715
"PT023", # https://github.com/astral-sh/ruff/issues/8796#issuecomment-1825907715
"D415", # Docstring can end without ./!
"D416", # Docstring Return can end without :
"S310", # urllib open-url warning (OK here)
"DTZ005", # Allow naive datetime in a tiny teaching example
"T201", # allow print in CLI scripts (optional)
]
[tool.ruff.lint.per-file-ignores]
"**/tests/**" = [
"S101", # Use of `assert` detected
"D103", # Missing docstring in public function
]
"**/__init__.py" = [
"F401", # Imported but unused
"D104", # No need to doc this file
]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
disallow_untyped_defs = true
warn_unused_ignores = true
ignore_missing_imports = true
exclude = [
"eegnet_repl-\\d+",
"venv.*/",
"build/",
"dist/",
]