-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
124 lines (111 loc) · 3.29 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[tool.poetry]
name = "camayoc"
version = "1.8.5"
description = "A GPL-licensed Python library that facilitates functional testing of Quipucords."
authors = ["Quipucords Dev Team <[email protected]>"]
readme = "README.rst"
license = "GPLv3"
repository = "https://github.com/quipucords/camayoc"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
]
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.poetry.dependencies]
python = ">= 3.11, < 3.14"
attrs = "^24.2.0"
dynaconf = "^3.2.4"
factory_boy = "^3.2.1"
littletable = "^3.0.1"
pexpect = "^4.8.0"
# playwright needs to download browsers. We do that during Jenkins agent image
# generation to save time during execution, but that means we need to keep
# version here in sync with version used when generating images
playwright = "1.47.0"
pydantic = "^2.6.3"
pytest = "^7.4.3"
pytest-ibutsu = "^2.2.4"
pytest-playwright = "^0.6.1"
pyxdg = "^0.28"
pyyaml = "^6.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
# For `make test-coverage`
pytest-cov = "^4.0.0"
# For `make validate-docstrings`
testimony = "^2.2.0"
# For `make pre-commit`
pre-commit = "^4.0.1"
isort = "^5.11.4"
ruff = "^0.8.0"
[tool.pytest.ini_options]
filterwarnings = "ignore::urllib3.exceptions.InsecureRequestWarning"
markers = [
"ssh_keyfile_path: mark test with SSH key file path mapped to /sshkeys/ on the server (deselect with '-m \"not ssh_keyfile_path\"')",
"runs_scan: tests that run scans (might be slow!)",
"slow: tests that take a long time to run (on average, more than 30 seconds)",
"nightly_only: tests to execute only during nightly (or full) run, i.e. not during PR check; note that actual selection is implemented in discovery-ci",
"pr_only: tests to execute only during PR check run, i.e. not during nightly run; note that actual selection is implemented in discovery-ci",
]
[tool.ruff]
src = [
"camayoc",
"tests",
]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = [
"C90", # mccabe complexity
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"Q", # flake8-quotes
"W", # pycodestyle
"PL", # Pylint
"BLE", # flake8-blind-except
]
ignore = [
"D203",
"D403",
"PLR2004",
# for now, ignore missing docstrings
"D100",
"D101",
"D102",
"D103",
"D106",
"D107",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "D104"]
"**/test_*.py" = [
"PLC1901",
"PLR2004",
"C901",
]
"camayoc/data_provider.py" = ["PLW2901"]
"camayoc/qpc_models.py" = ["PL", "C901"]
"camayoc/tests/qpc/ui/conftest.py" = ["BLE001"]
"camayoc/tests/qpc/utils.py" = ["PLW2901"]
"tests/test_command.py" = ["F401"]
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = [
"camayoc",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "pep257"