-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (74 loc) · 1.61 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
[project]
name = "detect_pythons"
version = "1.1.1"
description = "A GitHub action to detect installed Pythons. Suitable for cache-busting."
authors = [{ name = "Kurt McKee", email = "[email protected]" }]
license = "MIT"
readme = "README.rst"
requires-python = ">=3.8"
classifiers = ["Private :: Do not Upload"]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
# chipshot
# --------
[tool.chipshot]
template = """
This file is a part of the detect-pythons project.
https://github.com/kurtmckee/detect-pythons
Copyright 2023-{{ year }} Kurt McKee <[email protected]>
SPDX-License-Identifier: MIT
"""
exclusions = [
"changelog.d/",
]
# coverage
# --------
[tool.coverage.run]
parallel = true
branch = true
source = [
"detect_pythons",
"tests",
]
[tool.coverage.paths]
source = [
"src",
"*/site-packages",
]
[tool.coverage.report]
skip_covered = true
fail_under = 100
[tool.coverage.html]
skip_covered = false
directory = "htmlcov/"
# isort
# -----
[tool.isort]
profile = "black"
# pytest
# ------
[tool.pytest.ini_options]
addopts = "--color=yes"
filterwarnings = [
"error",
]
# scriv
# -----
[tool.scriv]
version = "literal: pyproject.toml: project.version"
categories = [
"Python support",
"Added",
"Fixed",
"Removed",
"Changed",
"Deprecated",
"Security",
]
entry_title_template = "{{ version }} - {{ date.strftime('%Y-%m-%d') }}"
format = "rst"
fragment_directory = "changelog.d"
insert_marker = "scriv-insert-here"
main_branches = ["main", "releases"]
new_fragment_template = "file: fragment-template.rst.txt"