-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (47 loc) · 1.05 KB
/
pyproject.toml
File metadata and controls
53 lines (47 loc) · 1.05 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
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = [
".eggs",
".git",
".hg",
".mypy_cache",
".tox",
".venv",
"_build",
"buck-out",
"build",
"dist",
"migrations",
"__pycache__",
".env",
"venv",
"your_project_module_name/ignore_folder_or_submodule"
]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # Import sorting
]
ignore = [
"E501", # Line too long
"E711", # Comparison to None
"F403", # Star imports
"F821", # Undefined name
"E741", # Ambiguous variable name
"E402", # Module level import not at top
"F841", # Local variable assigned but never used
]
[tool.ruff.lint.isort]
split-on-trailing-comma = true
force-single-line = false
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
"your_project_module_name/ignore_folder_or_submodule/**.py" = ["F", "E", "W"]