| 1 |
[tool.poetry] |
| 2 |
name = "aiodukeenergy" |
| 3 |
version = "1.1.1" |
| 4 |
description = "Asyncio Duke Energy" |
| 5 |
authors = ["Jason Hunter <[email protected]>"] |
| 6 |
license = "MIT" |
| 7 |
readme = "README.md" |
| 8 |
repository = "https://github.com/hunterjm/aiodukeenergy" |
| 9 |
documentation = "https://aiodukeenergy.readthedocs.io" |
| 10 |
classifiers = [ |
| 11 |
"Development Status :: 2 - Pre-Alpha", |
| 12 |
"Intended Audience :: Developers", |
| 13 |
"Natural Language :: English", |
| 14 |
"Operating System :: OS Independent", |
| 15 |
"Topic :: Software Development :: Libraries", |
| 16 |
] |
| 17 |
packages = [ |
| 18 |
{ include = "aiodukeenergy", from = "src" }, |
| 19 |
] |
| 20 |
|
| 21 |
[tool.poetry.urls] |
| 22 |
"Bug Tracker" = "https://github.com/hunterjm/aiodukeenergy/issues" |
| 23 |
"Changelog" = "https://github.com/hunterjm/aiodukeenergy/blob/main/CHANGELOG.md" |
| 24 |
|
| 25 |
[tool.poetry.dependencies] |
| 26 |
python = "^3.10" |
| 27 |
aiohttp = ">=3.9.0" |
| 28 |
yarl = ">=1.9.0" |
| 29 |
PyJWT = ">=2.0.0" |
| 30 |
|
| 31 |
[tool.poetry.group.dev.dependencies] |
| 32 |
pytest = "^8.0.0" |
| 33 |
pytest-cov = "^5.0.0" |
| 34 |
pytest-asyncio = "^0.23.6" |
| 35 |
aioresponses = "^0.7.6" |
| 36 |
|
| 37 |
[tool.poetry.group.docs] |
| 38 |
optional = true |
| 39 |
|
| 40 |
[tool.poetry.group.docs.dependencies] |
| 41 |
myst-parser = { version = ">=0.16", python = ">=3.11"} |
| 42 |
sphinx = { version = ">=4.0", python = ">=3.11"} |
| 43 |
furo = { version = ">=2023.5.20", python = ">=3.11"} |
| 44 |
sphinx-autobuild = { version = ">=2024.0.0", python = ">=3.11"} |
| 45 |
|
| 46 |
[tool.semantic_release] |
| 47 |
version_toml = ["pyproject.toml:tool.poetry.version"] |
| 48 |
version_variables = [ |
| 49 |
"src/aiodukeenergy/__init__.py:__version__", |
| 50 |
"docs/conf.py:release", |
| 51 |
] |
| 52 |
build_command = "pip install poetry && poetry build" |
| 53 |
|
| 54 |
[tool.semantic_release.changelog] |
| 55 |
exclude_commit_patterns = [ |
| 56 |
"chore*", |
| 57 |
"ci*", |
| 58 |
] |
| 59 |
|
| 60 |
[tool.semantic_release.changelog.environment] |
| 61 |
keep_trailing_newline = true |
| 62 |
|
| 63 |
[tool.semantic_release.branches.main] |
| 64 |
match = "main" |
| 65 |
|
| 66 |
[tool.semantic_release.branches.noop] |
| 67 |
match = "(?!main$)" |
| 68 |
prerelease = true |
| 69 |
|
| 70 |
[tool.pytest.ini_options] |
| 71 |
addopts = """\ |
| 72 |
-v |
| 73 |
-Wdefault |
| 74 |
--cov=aiodukeenergy |
| 75 |
--cov-report=term |
| 76 |
--cov-report=xml |
| 77 |
""" |
| 78 |
pythonpath = ["src"] |
| 79 |
|
| 80 |
[tool.coverage.run] |
| 81 |
branch = true |
| 82 |
|
| 83 |
[tool.coverage.report] |
| 84 |
exclude_lines = [ |
| 85 |
"pragma: no cover", |
| 86 |
"@overload", |
| 87 |
"if TYPE_CHECKING", |
| 88 |
"raise NotImplementedError", |
| 89 |
'if __name__ == "__main__":', |
| 90 |
] |
| 91 |
|
| 92 |
[tool.ruff] |
| 93 |
target-version = "py38" |
| 94 |
line-length = 88 |
| 95 |
|
| 96 |
[tool.ruff.lint] |
| 97 |
ignore = [ |
| 98 |
"D203", # 1 blank line required before class docstring |
| 99 |
"D212", # Multi-line docstring summary should start at the first line |
| 100 |
"D100", # Missing docstring in public module |
| 101 |
"D104", # Missing docstring in public package |
| 102 |
"D107", # Missing docstring in `__init__` |
| 103 |
"D401", # First line of docstring should be in imperative mood |
| 104 |
] |
| 105 |
select = [ |
| 106 |
"B", # flake8-bugbear |
| 107 |
"D", # flake8-docstrings |
| 108 |
"C4", # flake8-comprehensions |
| 109 |
"S", # flake8-bandit |
| 110 |
"F", # pyflake |
| 111 |
"E", # pycodestyle |
| 112 |
"W", # pycodestyle |
| 113 |
"UP", # pyupgrade |
| 114 |
"I", # isort |
| 115 |
"RUF", # ruff specific |
| 116 |
] |
| 117 |
|
| 118 |
[tool.ruff.lint.per-file-ignores] |
| 119 |
"tests/**/*" = [ |
| 120 |
"D100", |
| 121 |
"D101", |
| 122 |
"D102", |
| 123 |
"D103", |
| 124 |
"D104", |
| 125 |
"S101", |
| 126 |
] |
| 127 |
"setup.py" = ["D100"] |
| 128 |
"conftest.py" = ["D100"] |
| 129 |
"docs/conf.py" = ["D100"] |
| 130 |
|
| 131 |
[tool.ruff.lint.isort] |
| 132 |
known-first-party = ["aiodukeenergy", "tests"] |
| 133 |
|
| 134 |
[tool.mypy] |
| 135 |
check_untyped_defs = true |
| 136 |
disallow_any_generics = true |
| 137 |
disallow_incomplete_defs = true |
| 138 |
disallow_untyped_defs = true |
| 139 |
mypy_path = "src/" |
| 140 |
no_implicit_optional = true |
| 141 |
show_error_codes = true |
| 142 |
warn_unreachable = true |
| 143 |
warn_unused_ignores = true |
| 144 |
exclude = [ |
| 145 |
'docs/.*', |
| 146 |
'setup.py', |
| 147 |
] |
| 148 |
|
| 149 |
[[tool.mypy.overrides]] |
| 150 |
module = "tests.*" |
| 151 |
allow_untyped_defs = true |
| 152 |
|
| 153 |
[[tool.mypy.overrides]] |
| 154 |
module = "docs.*" |
| 155 |
ignore_errors = true |
| 156 |
|
| 157 |
[build-system] |
| 158 |
requires = ["poetry-core>=1.0.0"] |
| 159 |
build-backend = "poetry.core.masonry.api" |