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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
|
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.poetry]
authors = ["Martin Hjelmare <marhje52@gmail.com>"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
]
description = "Fetch rates from openexchangerates with aiohttp."
documentation = "https://aioopenexchangerates.readthedocs.io"
license = "Apache Software License 2.0"
name = "aioopenexchangerates"
packages = [
{include = "aioopenexchangerates", from = "src"},
]
readme = "README.md"
repository = "https://github.com/MartinHjelmare/aioopenexchangerates"
version = "0.4.14"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/MartinHjelmare/aioopenexchangerates/issues"
"Changelog" = "https://github.com/MartinHjelmare/aioopenexchangerates/blob/main/CHANGELOG.md"
[tool.poetry.dependencies]
aiohttp = "^3.8.4"
pydantic = "^1.9"
python = "^3.9"
[tool.poetry.group.dev.dependencies]
aioresponses = "^0.7.3"
bandit = "^1.7"
black = "^24.0.0"
flake8 = "^7.0.0"
flake8-docstrings = "^1.6"
isort = "^5.10"
mypy = "^1.0"
pre-commit = "^3.0.0"
pylint = "^3.0.0"
pylint-strict-informational = "^0.1"
pytest = "^8.0.0"
pytest-aiohttp = "^1.0.4"
pytest-cov = "^5.0.0"
python-semantic-release = "^8.0.0"
pyupgrade = "^3.0"
yarl = "^1.7.2"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
myst-parser = "^3.0.0"
sphinx = "^7.0.0"
sphinx-rtd-theme = "^2.0.0"
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@overload",
"if TYPE_CHECKING",
"raise NotImplementedError",
]
[tool.isort]
combine_as_imports = true
force_sort_within_sections = true
forced_separate = [
"tests",
]
known_first_party = [
"aioopenexchangerates",
"tests",
]
profile = "black"
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
exclude = [
'docs/.*',
'setup.py',
]
mypy_path = "src/"
no_implicit_optional = true
plugins = [
"pydantic.mypy",
]
show_error_codes = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
allow_untyped_defs = true
module = "tests.*"
[[tool.mypy.overrides]]
ignore_errors = true
module = "docs.*"
[tool.pylint.MAIN]
extension-pkg-allow-list = "pydantic"
fail-on = [
"I",
]
ignore = []
init-hook = """\
from pathlib import Path; \
import sys; \
from pylint.config import find_default_config_files; \
sys.path.append( \
str(Path(next(find_default_config_files())).parent.joinpath('pylint/plugins'))
) \
"""
jobs = 2
load-plugins = [
"pylint.extensions.code_style",
"pylint.extensions.typing",
"pylint_strict_informational",
]
persistent = false
py-version = "3.9"
score = false
[tool.pylint.DESIGN]
max-args = 7
[tool.pylint.FORMAT]
expected-line-ending-format = "LF"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"duplicate-code",
"format",
"locally-disabled",
"too-few-public-methods",
"unused-argument",
]
enable = [
"useless-suppression",
"use-symbolic-message-instead",
]
[tool.pylint.CODE_STYLE]
max-line-length-suggestions = 88
[tool.pylint.TYPING]
runtime-typing = false
[tool.pytest.ini_options]
addopts = "-Wdefault --cov=aioopenexchangerates --cov-report=term-missing:skip-covered"
asyncio_mode = "auto"
pythonpath = ["src"]
[tool.semantic_release]
build_command = "pip install poetry && poetry build"
major_on_zero = false
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variables = [
"src/aioopenexchangerates/__init__.py:__version__",
]
[tool.semantic_release.changelog]
exclude_commit_patterns = [
"^chore.*",
"^ci.*",
"^Bump.*",
]
|