-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (78 loc) · 2.09 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
[build-system]
requires = ["setuptools>=63.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "server-monitor-agent"
description = "Utility to run checks on a server and send notifications."
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: System Administrators",
"Topic :: System :: Monitoring",
]
dynamic = [
"version",
"dependencies",
"optional-dependencies",
]
[project.urls]
"Homepage" = "https://github.com/qcif/server-monitor-agent"
"Bug Tracker" = "https://github.com/qcif/server-monitor-agent/issues"
[project.scripts]
server-monitor-agent = 'server_monitor_agent.entry:main'
[tool.setuptools.packages.find]
where = ["src"]
# include and exclude accept strings representing glob patterns.
include = ["server_monitor_agent*"]
[tool.setuptools.dynamic]
version = { file = ["VERSION"] }
dependencies = { file = ["requirements.txt"] }
[tool.setuptools.dynamic.optional-dependencies]
dev = { file = ["requirements-dev.txt"] }
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra --quiet"
pythonpath = ["src"]
testpaths = ["tests"]
[tool.coverage.run]
# "Specifying the source option enables coverage.py to report on unexecuted files,
# since it can search the source tree for files that haven’t been measured at all."
source = ['src']
omit = [
'*/site-packages/*',
'tests/*',
]
[tool.coverage.report]
skip_empty = true
[tool.coverage.html]
directory = "coverage-html"
[tool.isort]
profile = "black"
src_paths = [
"src",
]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py38,py39,py310,py311,py312
[testenv]
#recreate = true
deps =
-r requirements.txt
-r requirements-dev.txt
set_env =
PYTHONDEVMODE=1
commands =
server-monitor-agent --help
server-monitor-agent --version
coverage run -m pytest --tb=long --durations=5
"""
[tool.pydocstyle]
ignore = 'D104'
[tool.mypy]
ignore_missing_imports = true