[project] name = "aiotankerkoenig" version = "0.0.0" description = "Async Python 3 client for tankerkoenig.de" authors = [{ name = "Jan-Philipp Benecke", email = "jan-philipp@bnck.me" }] license = "MIT" readme = "README.md" requires-python = ">=3.11" classifiers = [ "Development Status :: 5 - Production/Stable", "Framework :: AsyncIO", "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ] dependencies = [ "aiohttp>=3.0.0", "yarl>=1.6.0", "mashumaro>=3.11,<4", "orjson>=3.9.0", ] [project.urls] Repository = "https://github.com/jpbede/aiotankerkoenig" "Bug Tracker" = "https://github.com/jpbede/aiotankerkoenig/issues" Changelog = "https://github.com/jpbede/aiotankerkoenig/releases" [dependency-groups] dev = [ "codespell==2.4.2", "covdefaults==2.3.0", "coverage[toml]==7.13.5", "mypy==2.0.0", "pre-commit==4.6.0", "pre-commit-hooks==6.0.0", "pylint==4.0.5", "pytest==9.0.3", "pytest-asyncio==1.3.0", "pytest-cov==7.1.0", "ruff==0.15.12", "safety==3.7.0", "yamllint==1.38.0", "syrupy==5.1.0", "aioresponses==0.7.8", ] [tool.coverage.report] show_missing = true fail_under = 50 [tool.coverage.run] plugins = ["covdefaults"] source = ["aiotankerkoenig"] [tool.mypy] # Specify the target platform details in config, so your developers are # free to run mypy on Windows, Linux, or macOS and get consistent # results. platform = "linux" python_version = "3.11" # show error messages from unrelated files follow_imports = "normal" # suppress errors about unsatisfied imports ignore_missing_imports = true # be strict check_untyped_defs = true disallow_any_generics = true disallow_incomplete_defs = true disallow_subclassing_any = true disallow_untyped_calls = true disallow_untyped_decorators = true disallow_untyped_defs = true no_implicit_optional = true strict_optional = true warn_incomplete_stub = true warn_no_return = true warn_redundant_casts = true warn_return_any = true warn_unused_configs = true warn_unused_ignores = true [tool.pylint.MASTER] ignore = [ "tests", ] [tool.pylint.BASIC] good-names = [ "_", "ex", "fp", "i", "id", "j", "k", "on", "Run", "T", ] [tool.pylint.DESIGN] max-attributes = 8 [tool.pylint."MESSAGES CONTROL"] disable = [ "duplicate-code", "format", "unsubscriptable-object", "too-many-instance-attributes", "too-many-arguments", "too-many-public-methods", "wrong-import-order", ] [tool.pylint.SIMILARITIES] ignore-imports = true [tool.pylint.FORMAT] max-line-length = 88 [tool.pytest.ini_options] addopts = "--cov" asyncio_mode = "auto" [tool.ruff] target-version = "py311" [tool.ruff.lint] ignore = [ "ANN101", # Self... explanatory "ANN102", # cls... just as useless "ANN401", # Opinioated warning on disallowing dynamically typed expressions "D203", # Conflicts with other rules "D213", # Conflicts with other rules "D417", # False positives in some occasions "PLR2004", # Just annoying, not really useful "PLR0913", # Too many arguments "TC001", ] select = ["ALL"] [tool.ruff.lint.flake8-pytest-style] fixture-parentheses = false mark-parentheses = false [tool.ruff.lint.isort] known-first-party = ["aiotankerkoenig"] force-sort-within-sections = true split-on-trailing-comma = false combine-as-imports = true [tool.ruff.lint.mccabe] max-complexity = 25 [build-system] build-backend = "hatchling.build" requires = ["hatchling"]