-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
120 lines (101 loc) · 2.73 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
authors = [{ name = "fluentqa-team", email = "fluent-qa@fluentqa.com" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
description = "A Python boilet template for different types of projects."
version = "0.1.0"
keywords = [
"copier-template",
"full-development-lifecycle",
"project-template",
"scaffold",
"python",
"template",
"project-generator",
"uv",
"cookiecutter",
"cli"
]
license = { text = "MIT" }
name = "{{prject_name}}"
readme = "README.md"
requires-python = ">3.9"
[project.scripts]
qpyapp = "qpyapp:main"
cleanup = "qpyci.commands:clean"
cov = "ci:coverage"
badge = "qpyci.commands:generate_badge"
check_format = "ci:check_format"
ci = "ci:ci"
[project.urls]
issue = "https://github.com/"
repository = "https://github.com/"
[tool.hatch.build.targets.wheel.force-include]
"ci.py" = "ci.py"
[tool.uv]
default-groups = ["dev"]
[tool.uv.sources]
qpyci = { git = "https://github.com/fluent-qa/qpyci.git", rev = "main" }
[tool.uv.workspace]
members = [""]
[tool.hatch.build.targets.wheel]
packages = ["src/{{project_name}}"]
[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.ruff]
line-length = 120
target-version = "py39"
include = ["**/**/*.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 = ["qpyconf"] }
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/**/**/*.py" = ["D101", "D103"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = [
"--alluredir",
"allure-results",
"--clean-alluredir",
"-l",
"-s",
"--durations",
"0"
]
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"