-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
125 lines (108 loc) · 2.65 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
125
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[project]
name = "tox-asdf"
version = "0.1.1.dev"
description = "A plugin telling tox to use asdf to find python executables"
authors = [
{name = "Axel H.", email = "[email protected]"},
{name = "API Hackers", email = "[email protected]"},
]
requires-python = ">=3.7"
dependencies = [
"tox>=2.0",
"packaging>=21.3",
]
readme = "README.md"
license = {text = "MIT"}
keywords = [
"tox",
"asdf",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.entry-points.tox]
asdf = "tox_asdf.plugin"
[project.urls]
Homepage = "https://github.com/apihackers/tox-asdf"
[project.optional-dependencies]
test = [
"pytest>=4.0.0",
"pytest-cov",
"pytest-mock",
"pytest-sugar",
]
lint = [
"flake8",
"black",
"isort",
"mypy",
]
tox = [
"tox",
"tox-pdm>=0.5",
]
[tool.pdm]
[tool.pdm.scripts]
lint = "pre-commit run --all-files"
test = {cmd = "pytest", help = "Run the test suite"}
cover = {composite = [
"test --cov --cov-report=term --cov-report=xml --cov-report=html --junitxml=reports/tests.xml",
], help = "Run the test suite with coverage"}
tox = "tox"
[tool.pdm.vscode]
linters = ["flake8"]
formatter = "black"
test = "pytest"
isort = true
[tool.black]
line-length = 100
preview = true
[tool.isort]
profile = "black"
atomic = true
filter_files = true
known_first_party = ["tox_asdf"]
known_third_party = ["tox"]
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = [
"tests/",
]
markers = [
"pythons: mark fake Python installs",
"all_pythons: makr fake available Pythons",
"asdf_error: Expect an ASDF error",
"asdf_missing: Mark a test runnning without ASDF",
"asdf_python_missing: Mark a test running with a missing Python version"
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
[tool.coverage]
[tool.coverage.run]
branch = true
source = [
"tox_asdf",
]
[tool.coverage.html]
directory = "reports/coverage"
[tool.coverage.xml]
output = "reports/coverage.xml"