generated from chaostoolkit/chaostoolkit-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
86 lines (75 loc) · 2.37 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "chaostoolkit-extension-template"
dynamic = ["version"]
description = "Template project for Chaos Toolkit extensions"
authors = [
{name = "Sylvain Hellegouarch", email = "[email protected]"},
]
dependencies = [
"chaostoolkit-lib>=1.37",
]
requires-python = ">=3.7"
readme = "README.md"
license = {text = "Apache-2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: Freely Distributable",
"License :: OSI Approved :: Apache Software 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",
"Programming Language :: Python :: Implementation :: CPython"
]
[project.urls]
documentation = "https://chaostoolkit.org"
repository = "https://github.com/chaostoolkit/chaostoolkit-extension-template"
changelog = "https://github.com/chaostoolkit/chaostoolkit-extension-template/blob/master/CHANGELOG.md"
[tool]
[tool.pdm]
version = { source = "scm" }
[tool.pdm.scripts]
lint = {composite = ["ruff chaosext/", "isort --check-only --profile black chaosext/", "black --check --diff chaosext/", "mypy chaosext/", "bandit -r chaosext"]}
format = {composite = ["isort --profile black chaosext/", "black chaosext/", "ruff chaosext/ --fix"]}
test = {cmd = "pytest"}
[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.0.280",
"black>=23.3.0",
"pytest-sugar>=0.9.7",
"pytest-cov>=4.1.0",
"pytest>=7.4.0",
"coverage>=7.2.7",
"isort>=5.11.5",
"mypy>=1.4.1",
"bandit>=1.7.5",
]
[tool.black]
color = true
line-length = 80
target-version = ['py310']
[tool.mypy]
namespace_packages = true
[tool.ruff]
line-length = 80
target-version = "py310"
[tool.isort]
line_length = 80
known_first_party = 'chaosext'
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
addopts = "-v -rxs --cov chaosext --cov-report term-missing:skip-covered --cov-report xml -p no:warnings"