-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
117 lines (99 loc) · 2.62 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
[project]
name = "qpyhelper"
version = "0.1.0"
description = "fluent qa helper to improve productivity"
readme = "README.md"
requires-python = ">=3.10,<3.11"
dependencies = [
"pydantic==2.7.4", # Specific version
"typing-extensions==4.6.3", # Compatible with pydantic 2.7.4
"werkzeug==2.2.3",
"psycopg2-binary>=2.9.10",
"qpydao",
"typer>=0.15.1",
"mitmproxy>=8.1.1",
"gradio>=3.50.2",
]
[dependency-groups]
lint = [
"ruff>=0.8.3",
]
dev = [
"allure-pytest>=2.13.5",
"pytest-cov>=6.0.0",
"pytest>=8.3.4",
"coverage-badge>=1.1.2",
"qpyci"
]
[tool.uv]
default-groups = ["dev"]
[project.scripts]
cleanup = "qpyci.commands:clean"
cov = "ci:coverage"
badge = "qpyci.commands:generate_badge"
check_format = "ci:check_format"
qacli = "qpyhelper.commands.cli:main"
qaui = "qpyhelper.ui.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/qpyhelper"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.uv.sources]
qpyci = { git = "https://github.com/fluent-qa/qpyci.git", rev = "main" }
qpydao = { git = "https://github.com/fluent-qa/qpydao.git", rev = "main" }
[tool.hatch.build.targets.wheel.force-include]
"ci.py" = "ci.py"
[tool.ruff]
line-length = 120
target-version = "py39"
include = [
"qpyhelper/**/*.py",
"tests/**/*.py",
"docs/**/*.py",
]
[tool.ruff.lint]
extend-select = [
"Q",
"RUF100",
"C90",
"UP",
"I",
"D",
]
flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" }
isort = { combine-as-imports = true, known-first-party = ["qpyhelper"] }
mccabe = { max-complexity = 15 }
ignore = [
"D100", # ignore missing docstring in module
"D102", # ignore missing docstring in public method
"D104", # ignore missing docstring in public package
"D105", # ignore missing docstring in magic methods
"D107", # ignore missing docstring in __init__ methods
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
# don't format python in docstrings, pytest-examples takes care of it
docstring-code-format = false
quote-style = "single"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D"]
"docs/**/*.py" = ["D"]
"src/qpyhelper/**/*.py" = ["D101", "D103"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = [
"--alluredir", "allure-results",
"--clean-alluredir",
"-l", "-s", "--durations", "0",
"--cov", "qpyhelper"
]
log_cli = true
log_cli_level = "info"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_format = "%(asctime)s %(levelname)s %(message)s"
minversion = "6.0"