-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (90 loc) · 2.91 KB
/
pyproject.toml
File metadata and controls
100 lines (90 loc) · 2.91 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
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
95
96
97
98
99
100
[tool.poetry]
name = "kuadrant-testsuite"
version = "0.1.0"
description = "Tests for Kuadrant project"
authors = ["Kuadrant QE <kuadrantdev@gmail.com>"]
readme = "README.md"
package-mode = false
[tool.poetry.group.main.dependencies]
python = "^3.11"
typing_extensions = "*"
pytest-xdist = "*"
pytest = "*"
pytest-html = "*"
dynaconf = "*"
dnspython = "*"
python-keycloak = ">=3.6"
PyJWT = "*"
lxml = "*"
cryptography = "*"
backoff = "*"
httpx = { version = "*", extras = ["http2"] }
openshift-client = ">=2"
apyproxy = "*"
weakget = "*"
pytest-playwright = "*"
playwright = "1.57.0"
[tool.poetry.group.dev.dependencies]
mypy = "*"
pylint = "*"
types-PyYAML = "*"
black = {version = "*", extras = ["d"]}
# Black
[tool.black]
line-length = 120
# Pytest:
[tool.pytest.ini_options]
markers = [
"issue: Reference to covered issue",
"authorino: Test is using Authorino features",
"standalone_only: Component test that can only run by itself, without Kuadrant",
"kuadrant_only: Component test that can only run as a part of Kuadrant",
"limitador: Test is using Limitador features",
"tlspolicy: Test is using TLSPolicy",
"dnspolicy: Test is using DNSPolicy",
"extensions: Test is using the extensions framework",
"smoke: Build verification test",
"disruptive: Test is disruptive",
"multicluster: Test is specifc to Multicluster deployment",
"coredns_one_primary: CoreDNS multicluster tests using one primary cluster",
"coredns_two_primaries: CoreDNS multicluster tests using two primary clusters",
"defaults_overrides: Defaults and Overrides feature tests",
"observability: Tracing, metrics and logging tests",
"ui: Test uses browser automation via Playwright to test the console plugin UI",
"min_ocp_version: Minimum OpenShift version required for test (e.g., @pytest.mark.min_ocp_version((4, 20)))",
]
filterwarnings = [
"ignore: WARNING the new order is not taken into account:UserWarning",
"ignore::urllib3.exceptions.InsecureRequestWarning",
"ignore::cryptography.utils.CryptographyDeprecationWarning"
]
log_format = "%(asctime)s %(levelname)s:%(name)s:%(message)s"
log_date_format = "%H:%M:%S %z"
log_level = "INFO"
junit_logging = "all"
junit_family = "xunit2"
xfail_strict = true
# Pylint:
[tool.pylint.FORMAT]
max-line-length = 120
disable = [
"duplicate-code", # reports false alarms AND can't be disabled locally; pylint issue #214
"fixme", # ignore TODOs
"redefined-outer-name",
"too-many-arguments",
"too-many-positional-arguments",
"too-few-public-methods"]
[tool.pylint.BASIC]
good-names=["i","j","k",
"pytestmark",
"logger",
"ca", "gw"]
# Mypy:
[tool.mypy]
implicit_optional = true
[[tool.mypy.overrides]]
module = ["dynaconf.*", "keycloak.*", "weakget.*", "openshift_client.*", "apyproxy.*", "click.*", "py.*"]
ignore_missing_imports = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"