-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
94 lines (86 loc) · 1.42 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[tool.pytest.ini_options]
addopts = """
-ra -q --verbosity=3
--cov --cov-report=term-missing --cov-report=xml
"""
minversion = "2.0"
log_level = "DEBUG"
log_cli_level = "DEBUG"
testpaths = [
"apicast",
"test",
]
xfail_strict = true
[tool.coverage.run]
source = ["apicast"]
[tool.coverage.report]
show_missing = true
fail_under = 0
omit = [
"test/*",
]
[tool.ruff]
line-length = 100
extend-exclude = [
]
[tool.ruff.lint]
select = [
# Pycodestyle
"E",
"W",
# Pyflakes
"F",
# isort
"I",
# Bandit
"S",
# flake8-quotes
"Q",
# eradicate
"ERA",
# flake8-2020
"YTT",
# print
"T20",
# return
"RET",
# pyupgrade
# "UP",
# flake8-commas
"COM",
# future-annotations
# "FA",
# flake8-type-checking
"TCH",
# flake8-unused-arguments
"ARG",
# flake8-use-pathlib
# "PTH"
]
extend-ignore = [
# Unnecessary `elif` after `return` or `raise` statement.
"RET505",
"RET506",
# No trailing commas.
"COM812"
]
unfixable = ["ERA", "F401", "F841", "T20", "ERA001"]
[tool.ruff.lint.per-file-ignores]
"apicast/cli.py" = ["T201"]
"test/*" = ["S101"]
# ===================
# Tasks configuration
# ===================
[tool.poe.tasks]
format = [
{cmd="ruff format"},
{cmd="ruff check --fix"},
]
lint = [
{cmd="ruff check"},
]
test = [
{cmd="pytest"},
]
build = {cmd="python -m build"}
check = ["lint", "test"]