-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
130 lines (117 loc) · 2.78 KB
/
setup.cfg
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
# metricq-sink-nsca
# Copyright (C) 2020 ZIH, Technische Universitaet Dresden, Federal Republic of Germany
#
# All rights reserved.
#
# This file is part of metricq.
#
# metricq is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# metricq is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with metricq. If not, see <http://www.gnu.org/licenses/>.
[metadata]
name = metricq-sink-nsca
author = TU Dresden
author_email = [email protected]
license = GPL3
license_file = LICENSE.txt
long_description = file: README.rst
long_description_content_type = text/x-rst
[options]
packages =
metricq_sink_nsca
python_requires = >= 3.10
include_package_data = True
setup_requires =
setuptools_scm
install_requires =
metricq ~= 4.0
click ~= 8.0
click-log ~= 0.3
[option.packages.find]
exclude =
tests
tests.*
[options.extras_require]
uvloop =
uvloop ~= 0.15.2
lint =
black
check-manifest
flake8 ~= 3.8
flake8-bugbear
isort ~= 5.0
pre-commit
test =
pytest
pytest-asyncio
docs =
sphinx ~= 4.2
sphinx_rtd_theme ~= 0.4.3
sphinx_autodoc_typehints ~= 1.10
sphinxcontrib-spelling ~= 5.4
releases ~= 1.6
dev =
%(test)s
%(lint)s
%(docs)s
tox
[options.entry_points]
console_scripts =
metricq-sink-nsca = metricq_sink_nsca:main
[flake8]
application-import-names = metricq_sink_nsca, tests
max-line-length = 88
extend-exclude =
.mypy_cache,
.pytest_cache,
.venv,
_build,
build,
dist,
venv
select =
# Regular flake8 rules
C, E, F, W
# flake8-bugbear rules
B
# pep8-naming rules
N
ignore =
# E203: whitespace before ':' (not PEP8 compliant)
E203
# E501: line too long (replaced by B950)
E501
# W503: line break before binary operator (not PEP8 compliant)
W503
[tox:tox]
envlist = py{310}, black, isort, check-manifest, flake8
[gh-actions]
python =
3.10: py39, flake8, black, isort, check-manifest
[testenv]
deps = .[test]
commands =
pytest \
--basetemp={envtmpdir} \
{posargs}
[testenv:black]
deps = .[lint]
commands = python -m black --check --diff .
[testenv:isort]
deps = .[lint]
commands = python -m isort --ignore-whitespace --check --diff .
[testenv:check-manifest]
deps = .[lint]
commands = python -m check_manifest
[testenv:flake8]
deps = .[lint]
commands = python -m flake8 --show-source --statistics