-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
executable file
·125 lines (113 loc) · 2.36 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
[metadata]
name = metricq-tools
author = TU Dresden
description = Useful scripts to manage and inspect a MetricQ instance
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/metricq/metricq-tools
license = GPL3
classifiers =
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Programming Language :: Python :: 3
[options]
packages =
metricq_tools
python_requires = >=3.10
setup_requires =
setuptools_scm
install_requires =
metricq ~= 5.1
click
click-log
async-timeout~=3.0
humanize~=2.5
python-dateutil~=2.8
python-dotenv~=1.0.0
python-hostlist
numpy
termplotlib
tabulate
[options.entry_points]
console_scripts =
metricq-check = metricq_tools.check:main
metricq-csv = metricq_tools.csv:main
metricq-discover = metricq_tools.discover:main
metricq-energy = metricq_tools.energy:main
metricq-inspect = metricq_tools.inspect:main
metricq-send = metricq_tools.send:main
metricq-slurm = metricq_tools.slurm:main
metricq-spy = metricq_tools.spy:main
metricq-summary = metricq_tools.summary:main
[options.extras_require]
lint =
black == 22.10.0
flake8
isort ~= 5.0
check-manifest
pre-commit
test =
pytest
typing =
mypy>=1.2.0
types-tabulate
types-python-dateutil
%(test)s
dev =
%(test)s
%(lint)s
%(typing)s
tox
[flake8]
application-import-names =
metricq,
tests,
examples
extend-exclude =
*_pb2.py,
*_pb2.pyi,
build,
.venv,
venv
show-source = True
statistics = True
select =
# Regular flake8 rules
C, E, F, W
# pep8-naming rules
N
ignore =
# E203: whitespace before ':' (not PEP8 compliant)
E203
# E501: line too long (black does that)
E501
# W503: line break before binary operator (not PEP8 compliant)
W503
[tox:tox]
envlist =
pytest
black
isort
check-manifest
flake8
mypy
[testenv:pytest]
deps = .[test]
commands =
pytest \
--basetemp={envtmpdir} \
{posargs}
[testenv:black]
deps = .[lint]
commands = black --check .
[testenv:isort]
deps = .[lint]
commands = isort --diff --check .
[testenv:check-manifest]
deps = .[lint]
commands = check-manifest
[testenv:flake8]
deps = .[lint]
commands = flake8 .
[testenv:mypy]
deps = .[typing]
commands = mypy metricq_tools tests