-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3dd4f29
commit 077a319
Showing
11 changed files
with
84 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
*.pyc | ||
*.pyo | ||
/build | ||
/*.egg-info | ||
/.coverage | ||
/.mypy_cache | ||
/.tox | ||
.eggs | ||
.pybuild | ||
.cache | ||
/build | ||
/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt | ||
- method: pip | ||
path: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,23 +13,23 @@ keywords = [ | |
"library", | ||
"prometheus", | ||
] | ||
license = {file = "LICENSE.txt"} | ||
license = { file = "LICENSE.txt" } | ||
maintainers = [ | ||
{name = "Alberto Donato", email = "[email protected]"}, | ||
{ name = "Alberto Donato", email = "[email protected]" }, | ||
] | ||
authors = [ | ||
{name = "Alberto Donato", email = "[email protected]"}, | ||
{ name = "Alberto Donato", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.10" | ||
requires-python = ">=3.11" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Utilities", | ||
|
@@ -42,60 +42,48 @@ dependencies = [ | |
"prometheus-client>=0.4", | ||
"toolrack>=2.1", | ||
] | ||
[project.optional-dependencies] | ||
testing = [ | ||
optional-dependencies.testing = [ | ||
"pytest", | ||
"pytest-aiohttp", | ||
"pytest-asyncio", | ||
"pytest-mock", | ||
"trustme", | ||
] | ||
[project.urls] | ||
changelog = "https://github.com/albertodonato/prometheus-aioexporter/blob/main/CHANGES.rst" | ||
homepage = "https://github.com/albertodonato/prometheus-aioexporter" | ||
repository = "https://github.com/albertodonato/prometheus-aioexporter" | ||
[project.scripts] | ||
prometheus-aioexporter-sample = "prometheus_aioexporter.sample:script" | ||
urls.changelog = "https://github.com/albertodonato/prometheus-aioexporter/blob/main/CHANGES.rst" | ||
urls.homepage = "https://github.com/albertodonato/prometheus-aioexporter" | ||
urls.repository = "https://github.com/albertodonato/prometheus-aioexporter" | ||
scripts.prometheus-aioexporter-sample = "prometheus_aioexporter.sample:script" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "prometheus_aioexporter.__version__"} | ||
version = { attr = "prometheus_aioexporter.__version__" } | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["prometheus_aioexporter*"] | ||
include = [ "prometheus_aioexporter*" ] | ||
|
||
[tool.black] | ||
line-length = 79 | ||
[tool.setuptools.package-data] | ||
prometheus_aioexporter = [ "py.typed" ] | ||
|
||
[tool.isort] | ||
combine_as_imports = true | ||
force_grid_wrap = 2 | ||
force_sort_within_sections = true | ||
from_first = false | ||
include_trailing_comma = true | ||
multi_line_output = 3 | ||
order_by_type = false | ||
profile = "black" | ||
use_parentheses = true | ||
[tool.ruff] | ||
line-length = 79 | ||
|
||
[tool.flake8] | ||
ignore = ["E203", "E501", "W503"] | ||
max-line-length = 80 | ||
select = ["C", "E", "F", "W", "B", "B950"] | ||
lint.select = [ "I", "RUF", "UP" ] | ||
lint.isort.combine-as-imports = true | ||
lint.isort.force-sort-within-sections = true | ||
|
||
[tool.pytest.ini_options] | ||
asyncio_mode = "auto" | ||
asyncio_default_fixture_loop_scope = "function" | ||
|
||
[tool.coverage.report] | ||
fail_under = 100.0 | ||
show_missing = true | ||
skip_covered = true | ||
|
||
[tool.coverage.run] | ||
source = ["prometheus_aioexporter"] | ||
omit = ["prometheus_aioexporter/sample.py"] | ||
source = [ "prometheus_aioexporter" ] | ||
omit = [ "prometheus_aioexporter/sample.py" ] | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
install_types = true | ||
non_interactive = true | ||
strict = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from collections.abc import Iterator | ||
import ssl | ||
from typing import Iterator | ||
|
||
import pytest | ||
from trustme import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from collections.abc import Callable | ||
from typing import ( | ||
Any, | ||
Callable, | ||
cast, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters