forked from sys-intelligence/system-intelligence-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (45 loc) · 1.26 KB
/
pyproject.toml
File metadata and controls
54 lines (45 loc) · 1.26 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
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"FA", # flake8-future-annotations
"Q", # flake8-quotes
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"D", # pydocstyle
"UP", # pyupgrade
"YTT", # flake8-2020
"C90", # mccabe
]
[tool.ruff.lint.per-file-ignores]
# Ignore all D (docstring) rules in the test folder
"**/{tests,docs,tools}/*" = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
docstring-code-format = true
quote-style = "single"
[tool.pytest.ini_options]
pythonpath = ["."]