generated from ashleve/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
78 lines (69 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[tool.pytest.ini_options]
addopts = [
"--color=yes",
"--durations=0",
"--strict-markers",
"--doctest-modules",
]
filterwarnings = ["ignore::DeprecationWarning", "ignore::UserWarning"]
log_cli = "True"
markers = ["slow: slow tests"]
minversion = "6.0"
testpaths = "tests/"
[tool.coverage.report]
exclude_lines = [
"pragma: nocover",
"raise NotImplementedError",
"raise NotImplementedError()",
"if __name__ == .__main__.:",
]
[tool.ruff]
# Assume Python 3.10
target-version = "py310"
fix = true
unsafe-fixes = true
[tool.ruff.lint]
preview = true
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# mccabe complex structure
"C90",
# flake8-return
"RET",
# flake8-comprehensions
"C4",
# NumPY-specific rules
"NPY",
# Perflint
"PERF",
# A tool for refurbishing and modernizing Python codebases.
"FURB",
# provides specializations for type hinting stub files
"PYI",
#flake8-blind-except
"BLE",
#Ruff-specific rules
"RUF",
# flake8-type-checking
"TCH",
# Pylint
"PL"
]
# Avoid enforcing line-length violations (`E501`)
ignore = ["E501", "PLR", "PLC"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = ["T20"]
[tool.pyright]
typeCheckingMode = "standard"