forked from albertodonato/query-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
134 lines (117 loc) · 2.59 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
131
132
133
134
[metadata]
name = query-exporter
version = 2.7.0
license = GPLv3+
description = Export Prometheus metrics generated from SQL queries
long_description = file: README.rst
author = Alberto Donato
author_email = [email protected]
maintainer = Alberto Donato
maintainer_email = [email protected]
url = https://github.com/albertodonato/query-exporter
keywords = sql, metric, prometheus, exporter
classifiers =
Development Status :: 5 - Production/Stable
Framework :: AsyncIO
Intended Audience :: System Administrators
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: OS Independent
Programming Language :: Python :: 3
Topic :: Database
Topic :: System :: Monitoring
Topic :: Utilities
[options]
python_requires = >= 3.6
install_requires =
aiohttp
argcomplete
croniter
jsonschema
prometheus-client
prometheus-aioexporter >= 1.5.1
python-dateutil
PyYAML
SQLAlchemy < 1.4
sqlalchemy_aio
toolrack >= 3.0.0
packages = find:
include_package_data = True
zip_safe = False
[options.packages.find]
include =
query_exporter
query_exporter.*
[options.package_data]
query_exporter =
schemas/*
[options.extras_require]
testing =
pytest
pytest-asyncio
pytest-mock
[options.entry_points]
console_scripts =
query-exporter = query_exporter.main:script
[globals]
lint_files = setup.py query_exporter
[coverage:run]
source = query_exporter
omit =
query_exporter/main.py
query_exporter/conftest.py
[coverage:report]
show_missing = True
fail_under = 100.0
skip_covered = True
[flake8]
max-line-length = 80
select = C, E, F, W, B, B950
ignore = E203, E501, W503
[mypy]
install_types = True
non_interactive = True
warn_return_any = True
warn_unused_configs = True
ignore_missing_imports = True
[tox:tox]
skipsdist = True
envlist = format, lint, check, coverage
[testenv]
deps =
.
.[testing]
commands =
{envbindir}/pytest {posargs}
[testenv:format]
deps =
black
isort
commands =
{envbindir}/isort {[globals]lint_files}
{envbindir}/black -q {[globals]lint_files}
[testenv:lint]
deps =
black
flake8
isort
commands =
{envbindir}/isort --check-only --diff {[globals]lint_files}
{envbindir}/black --check {[globals]lint_files}
{envbindir}/flake8 {[globals]lint_files}
[testenv:check]
deps =
mypy
commands =
{envbindir}/mypy -p query_exporter {posargs}
[testenv:coverage]
deps =
.
.[testing]
pytest-cov
commands =
{envbindir}/pytest --cov {posargs}
[testenv:run]
deps =
-e .
commands =
{envbindir}/query-exporter {posargs}