-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (131 loc) · 2.96 KB
/
pyproject.toml
File metadata and controls
137 lines (131 loc) · 2.96 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
[project]
name = "ukb_sleep_ml"
description = "UKB Sleep Prediction project"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "AGPL-3.0-only"}
authors = [
{ name = "Fede Raimondo", email = "f.raimondo@fz-juelich.de" },
]
maintainers = [
{ name = "Fede Raimondo", email = "f.raimondo@fz-juelich.de" },
]
keywords = [
"machine-learning",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Natural Language :: English",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
################
# Tool configs #
################
[tool.codespell]
skip = "*/auto_examples/*,*.html,.git/,*.pyc,*/_build/*,*/api/generated/*.examples,julearn/external/*"
count = ""
quiet-level = 3
ignore-words = "ignore_words.txt"
interactive = 0
builtin = "clear,rare,informal,names,usage,code"
[tool.ruff]
line-length = 79
extend-exclude = [
"__init__.py",
"docs",
"examples",
"external",
]
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# flake8-blind-except
"BLE",
# flake8-comprehensions
"C4",
# mccabe
"C90",
# pydocstyle
"D",
# pycodestyle errors
"E",
# pyflakes
"F",
# isort
"I",
# pep8-naming
"N",
# pygrep-hooks
"PGH",
# ruff
"RUF",
# flake8-type-checking
"TCH",
# pyupgrade
"UP",
# pycodestyle warnings
"W",
# flake8-2020
"YTT",
]
extend-ignore = [
# Use of `functools.lru_cache` or `functools.cache` on methods can lead to
# memory leaks. The cache may retain instance references, preventing garbage
# collection.
"B019",
# abstract class with no abstract methods
"B024",
"D202",
# missing docstring in __init__, incompatible with numpydoc
"D107",
# use r""" if any backslashes in a docstring
"D301",
# class names should use CapWords convention
"N801",
# function name should be lowercase
"N802",
# variable in function should be lowercase
"N806",
# use specific rule codes when ignoring type issues
"PGH003",
]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["julearn"]
known-third-party =[
"numpy",
"pandas",
"sklearn",
"statsmodels",
"bokeh",
"panel",
"param",
"deslib",
"pytest",
]
[tool.ruff.lint.mccabe]
max-complexity = 20
## Configure pyright to ignore assignment types until scikit-learn stubs are updated
[tool.pyright]
reportAssignmentType = "none"
exclude = [
"docs/auto_examples/",
"*.html",
".git/",
"*.pyc,",
"*/_build/*",
"build/",
".tox",
".eggs",
"scratch/", # place to prototype, not to be checked
]