-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
64 lines (54 loc) · 1.35 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
[tool.poetry]
name = "toy"
version = "0.1.0"
description = "A framework designed For Fun"
authors = ["Osvaldo Santana Neto <[email protected]>"]
license = "AGPL"
readme = "README.md"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = "^3.10"
staty = "*"
accept = "*"
prettyconf = "*"
jinja2 = "*"
[tool.poetry.group.dev.dependencies]
pytest = "*"
webtest = "*"
blue = "*"
ruff = "*"
pre-commit = "*"
sphinx = "*"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
[tool.blue]
line-length = 120
target-version = ['py310']
[tool.ruff]
line-length = 120
target-version = "py310"
select = [
"A", "B", "C", "D", "E", "F", "G", "I", "N", "T", "W", "ARG",
"BLE", "COM", "DTZ", "ERA", "EXE", "FBT", "ICN", "INP", "ISC",
"NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "RUF", "SLF",
"TCH", "TID", "TRY", "UP", "YTT",
]
ignore = []
fixable = [
"A", "B", "C", "D", "E", "F", "G", "I", "N", "T", "W", "ARG",
"BLE", "COM", "DTZ", "ERA", "EXE", "FBT", "ICN", "INP", "ISC",
"NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "RUF", "SLF",
"TCH", "TID", "TRY", "UP", "YTT",
]
unfixable = ["RET"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
known-first-party = ["recipes"]