-
Notifications
You must be signed in to change notification settings - Fork 22
/
pyproject.toml
60 lines (56 loc) · 1.33 KB
/
pyproject.toml
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
[build-system]
requires = [
"setuptools",
"wheel",
"ninja",
"torch",
]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
addopts = "-m 'not benchmark and not full'"
testpaths = [
"falkon/tests",
]
markers = [
# marks tests which are only used for timing purposes (deselect with '-m "not benchmark"')
"benchmark",
# tests which should only be run for very exhaustive testing. Not generally useful.
"full",
]
[tool.coverage.run]
branch = true
source = ["falkon"]
omit = [
"falkon/tests/*", "falkon/hopt/*", "falkon/benchmarks/*", "falkon/csrc/*",
]
[tool.black]
line-length = 120
[tool.ruff]
target-version = "py38"
ignore = [
"B028", # No explicit `stacklevel` keyword argument found
"SIM108",
"SIM116", # Disable Use a dictionary instead of consecutive `if` statements
"SIM102", "SIM103", "SIM112", # flake8-simplify code styles
"SIM105", # these ignores are from flake8-simplify. please fix or ignore with commented reason
"SIM114", # Combine `if` branches using logical `or` operator
"C408", # C408 ignored because we like the dict keyword argument syntax
]
line-length = 120
select = [
"B",
"C4",
"G",
"E",
"F",
"SIM1",
"W",
# Not included in flake8
"UP",
"PERF",
"PGH004",
"PIE807",
"PIE810",
"PLE",
"TRY302",
]