forked from Grigorij-Dudnik/Clean-Coder-AI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (58 loc) · 1.32 KB
/
pyproject.toml
File metadata and controls
66 lines (58 loc) · 1.32 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
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = ["D203", "D212", "TRY003", "PTH118", "RUF003", "A003", "INP001", "RUF015", "PERF401",
"PTH123", "TC003", "D417", "RUF001", "TC001", "DTZ003", "G004", "B008", "PLR0913",
"FIX004",
# lint issues related to prompts. Ignored for now.
"D205", "D207", "D209", "D213", "D401", "D400",
"D411", "D413", "D415", "E501", "W291", "W293"
]
lint.fixable = ["ALL"]
lint.unfixable = ["ERA001", "F841"]
# Exclude a variety of commonly ignored directories.
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",
"tmp/",
"__init__.py",
]
# Same as Black.
line-length = 119
# Assume Python 3.12.
target-version = "py312"
[tool.ruff.lint.per-file-ignores]
"test_*" = ["S101"]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.black]
line-length = 119
target-version = ['py312']
preview = true
[tool.pyright]
pythonVersion = "3.12"
ignore = ["tmp/"]
[tool.pytest.ini_options]
pythonpath = [
"."
]
addopts = "-p no:warnings"