-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (140 loc) · 4.57 KB
/
Copy pathpyproject.toml
File metadata and controls
156 lines (140 loc) · 4.57 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[project]
name = "coveralls"
version = "4.1.0"
description = "Show coverage stats online via coveralls.io"
readme = "README.rst"
requires-python = ">=3.10"
authors = [
{ name="Kevin James", email="coveralls-python@thekev.in" },
]
license = "MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Testing",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"coverage[toml] (>=6.3,<8.0)",
"requests (>=2.30.0,<3.0.0)",
"tomli (>=1.1.0) ; python_version < '3.11'",
"typer (>=0.12.0,<1.0.0)",
"urllib3 (>=2.0.0,<3.0.0)"
]
[project.urls]
Changelog = "https://github.com/TheKevJames/coveralls-python/blob/master/CHANGELOG.md"
Docs = "https://coveralls-python.rtfd.io/"
Repository = "https://github.com/TheKevJames/coveralls-python"
[project.scripts]
coveralls = "coveralls.cli:main"
python-coveralls = "coveralls.cli:main"
[project.optional-dependencies]
yaml = ["pyyaml (>=3.10,<7.0)"]
[dependency-groups]
dev = [
"pytest ==9.1.1",
"responses ==0.26.2"
]
docs = ["sphinx ==9.1.0; python_version >='3.12'"]
[tool.poetry]
packages = [
{ include = "coveralls" },
]
[tool.pytest.ini_options]
# addopts = "-Werror"
filterwarnings = [
"error",
# co_lnotab deprection on py3.12+ is fixed in coverage v7.1
"ignore:co_lnotab is deprecated, use co_lines instead:DeprecationWarning",
]
[tool.tox]
env_list = [
{ product = [["py310", "py311", "py312", "py313", "py314", "pypy3"], ["cov6", "cov7"], ["default", "pyyaml"]] },
]
[tool.tox.env_run_base]
pass_env = ["*"]
use_develop = true
# TODO: integrate renovate support
# https://github.com/renovatebot/renovate/pull/43975
deps = [
"responses==0.26.2",
"pytest==9.1.1",
{ replace = "if", condition = "factor.pyyaml", then = ["PyYAML>=3.10,<7.0"], extend = true },
{ replace = "if", condition = "factor.cov6", then = ["coverage[toml]>=6.0,<7.0"], extend = true },
{ replace = "if", condition = "factor.cov7", then = ["coverage[toml]>=7.0,<8.0"], extend = true },
]
commands = [
["coverage", "run", "--branch", "--source=coveralls", "-m", "pytest", "tests/"],
["coverage", "report", "-m"],
]
[tool.tox.env.upload]
deps = ["coverage[toml]>=7.0,<8.0"]
commands = [["coveralls", "--verbose"]]
[tool.tox.gh-actions]
python = """
3.10: py310, upload
3.11: py311, upload
3.12: py312, upload
3.13: py313, upload
3.14: py314, upload
"""
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.git-cliff.changelog]
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}\
{% for footer in commit.footers %}\
{% if footer.token == "changelog" %}\
\n\n{{ footer.value | trim | indent(prefix=" ", first=true) }}\n\
{% endif %}\
{% endfor %}\
{% endfor %}
{% endfor %}
"""
trim = true
render_always = true
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/TheKevJames/coveralls-python" },
]
# output = "CHANGELOG.md"
[tool.git-cliff.git]
conventional_commits = true
filter_unconventional = false
require_conventional = false
split_commits = false
commit_preprocessors = []
protect_breaking_commits = false
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->Features" },
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^doc", group = "<!-- 3 -->Documentation" },
{ message = "^refactor", group = "<!-- 3 -->Internal" },
{ message = "^test", group = "<!-- 3 -->Internal" },
{ message = "^chore\\(release\\): ", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore", group = "<!-- 3 -->Internal" },
{ message = ".*", group = "<!-- 4 -->Other Changes" },
]
filter_commits = false
fail_on_unmatched_commit = false
link_parsers = []
use_branch_tags = false
topo_order = false
topo_order_commits = true
sort_commits = "oldest"
recurse_submodules = false