-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathruff.toml
More file actions
69 lines (62 loc) · 1.12 KB
/
ruff.toml
File metadata and controls
69 lines (62 loc) · 1.12 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
target-version = "py311"
src = [
"plugins/cq/scripts",
"sdk/python/src/cq",
"server/backend/src/cq_server",
]
line-length = 120
include = ["*.py", "*.pyi"]
fix = true
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort (import sorting)
"N", # pep8-naming
"ISC", # flake8-implicit-str-concat
"PTH", # flake8-use-pathlib
"D", # pydocstyle (docstrings)
]
ignore = []
unfixable = [
"B", # flake8-bugbear
"F841", # unused variables
]
[lint.per-file-ignores]
"__init__.py" = ["F401", "D104"]
"**/tests/**" = [
"D",
"N999",
]
[lint.pydocstyle]
convention = "google"
[format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"