2024-10-06 13:47:16 +02:00
[ project ]
name = "akkudoktor-eos"
2025-11-20 00:10:19 +01:00
dynamic = [ "version" ] # Get version information dynamically
2024-10-06 13:47:16 +02:00
authors = [
{ name = "Andreas Schmitz" , email = "author@example.com" },
]
description = "This project provides a comprehensive solution for simulating and optimizing an energy system based on renewable energy sources. With a focus on photovoltaic (PV) systems, battery storage (batteries), load management (consumer requirements), heat pumps, electric vehicles, and consideration of electricity price data, this system enables forecasting and optimization of energy flow and costs over a specified period."
readme = "README.md"
license = { file = "LICENSE" }
2025-03-23 22:31:49 +01:00
requires-python = ">=3.11"
2024-10-06 13:47:16 +02:00
classifiers = [
"Development Status :: 3 - Alpha" ,
"Programming Language :: Python :: 3" ,
"Operating System :: OS Independent" ,
]
2026-02-23 20:59:03 +01:00
dependencies = [
"babel==2.18.0" ,
2026-06-09 01:34:22 +02:00
"beautifulsoup4==4.15.0" ,
2026-06-16 13:52:22 +02:00
"cachebox==6.1.2" ,
2026-05-19 15:52:37 +02:00
"numpy==2.4.6" ,
2026-06-23 09:41:30 +02:00
"numpydantic==1.10.0" ,
2026-07-20 14:37:55 +02:00
"matplotlib==3.11.1" ,
2026-02-23 20:59:03 +01:00
"contourpy==1.3.3" ,
2026-07-20 11:04:24 +02:00
"fastapi[standard-no-fastapi-cloud-cli]==0.139.2" ,
2026-07-20 13:46:05 +02:00
"fastapi_cli==0.0.32" ,
2026-07-15 11:06:23 +02:00
"rich-toolkit==0.20.3" ,
2026-07-20 13:46:21 +02:00
"python-fasthtml==0.14.9" ,
2026-06-23 09:41:10 +02:00
"MonsterUI==1.0.46" ,
2026-05-08 15:39:52 +02:00
"markdown-it-py==4.2.0" ,
2026-05-15 13:02:37 +02:00
"mdit-py-plugins==0.6.1" ,
2026-06-09 01:34:45 +02:00
"bokeh==3.9.1" ,
2026-07-09 17:27:10 +02:00
"uvicorn==0.51.0" ,
2026-02-25 13:38:05 +01:00
"scipy==1.17.1" ,
2026-07-15 10:02:01 +02:00
"tzfpy==1.3.2" ,
2026-04-18 14:33:43 +02:00
"deap==1.4.4" ,
2026-05-15 14:00:47 +02:00
"requests==2.34.2" ,
2026-05-12 17:54:37 +02:00
"pandas==3.0.3" ,
2026-02-23 20:59:03 +01:00
"pendulum==3.2.0" ,
2026-07-22 14:51:12 +02:00
"platformdirs==4.11.0" ,
2026-02-23 20:59:03 +01:00
"psutil==7.2.2" ,
2026-06-22 00:24:23 +02:00
"pvlib==0.15.2" ,
2026-05-06 23:45:27 +02:00
"pydantic==2.13.4" ,
2026-04-07 18:01:51 +02:00
"pydantic_extra_types==2.11.2" ,
2026-02-23 20:59:03 +01:00
"statsmodels==0.14.6" ,
2026-06-22 01:07:03 +02:00
"pydantic-settings==2.14.2" ,
2026-03-03 11:32:51 +01:00
"linkify-it-py==2.1.0" ,
2026-02-23 20:59:03 +01:00
"loguru==0.7.3" ,
2026-07-15 11:06:47 +02:00
"lmdb==2.3.0" ,
2026-02-23 20:59:03 +01:00
]
[ project . optional-dependencies ]
dev = [
# Pre-commit framework - basic package requirements handled by pre-commit itself
# - pre-commit-hooks
# - isort
# - ruff
# - mypy (mirrors-mypy) - sync with requirements-dev.txt (if on pypi)
# - pymarkdown
# - commitizen - sync with requirements-dev.txt (if on pypi)
#
# !!! Sync .pre-commit-config.yaml with these dependencies !!!
2026-07-22 14:51:53 +02:00
"pre-commit==4.6.1" ,
2026-07-15 11:07:47 +02:00
"mypy==2.3.0" ,
2026-07-15 10:01:18 +02:00
"types-requests==2.33.0.20260712" , # for mypy
2026-06-01 18:23:20 +02:00
"pandas-stubs==3.0.3.260530" , # for mypy
2026-02-23 20:59:03 +01:00
"tokenize-rt==6.2.0" , # for mypy
2026-07-15 10:01:05 +02:00
"types-docutils==0.22.3.20260712" , # for mypy
2026-05-19 16:25:23 +02:00
"types-PyYaml==6.0.12.20260518" , # for mypy
2026-07-20 11:04:39 +02:00
"commitizen==4.16.5" ,
2026-02-23 20:59:03 +01:00
"deprecated==1.3.1" , # for commitizen
# Sphinx
"sphinx==9.0.4" ,
"sphinx_rtd_theme==3.1.0" ,
2026-03-11 01:17:14 +01:00
"sphinx-tabs==3.5.0" ,
2026-07-22 14:51:33 +02:00
"GitPython==3.1.53" ,
2026-05-15 14:01:26 +02:00
"myst-parser==5.1.0" ,
2026-02-23 20:59:03 +01:00
"docutils==0.21.2" ,
2026-07-20 11:04:56 +02:00
"sphinxcontrib-mermaid==2.1.0 " ,
2026-02-23 20:59:03 +01:00
# Pytest
2026-06-22 00:23:51 +02:00
"pytest==9.1.1" ,
2026-05-27 21:06:45 +02:00
"pytest-asyncio==1.4.0" ,
2026-03-26 12:32:30 +01:00
"pytest-cov==7.1.0" ,
2026-02-23 20:59:03 +01:00
"pytest-xprocess==1.0.2" ,
2026-07-20 13:45:48 +02:00
"coverage==7.15.2" ,
2026-08-01 12:45:19 +02:00
"pypdf==6.14.2" ,
2026-02-23 20:59:03 +01:00
]
2024-10-06 13:47:16 +02:00
[ project . urls ]
Homepage = "https://github.com/Akkudoktor-EOS/EOS"
Issues = "https://github.com/Akkudoktor-EOS/EOS/issues"
[ build-system ]
2026-02-23 20:59:03 +01:00
requires = [ "setuptools>=77" , "wheel" ]
2024-10-06 13:47:16 +02:00
build-backend = "setuptools.build_meta"
[ tool . setuptools . dynamic ]
2025-11-20 00:10:19 +01:00
# version.txt must be generated
version = { file = "version.txt" }
2024-10-06 13:47:16 +02:00
[ tool . setuptools . packages . find ]
where = [ "src/" ]
2024-11-15 22:27:25 +01:00
include = [ "akkudoktoreos" ]
2024-10-06 13:47:16 +02:00
2024-10-07 12:24:45 +02:00
[ tool . setuptools . package-data ]
2024-11-15 22:27:25 +01:00
akkudoktoreos = [ "*.json" , "data/*.npz" , ]
2024-10-07 12:24:45 +02:00
2024-11-10 23:00:16 +01:00
[ tool . pyright ]
# used in Pylance extension for language server
# type check is done by mypy, disable to avoid unwanted errors
typeCheckingMode = "off"
2024-10-03 11:01:37 +02:00
[ tool . isort ]
profile = "black"
2024-10-03 11:05:44 +02:00
2024-10-10 15:00:03 +02:00
[ tool . ruff ]
line-length = 100
2025-06-03 08:30:37 +02:00
exclude = [
"tests" ,
"scripts" ,
]
output-format = "full"
2024-10-10 15:00:03 +02:00
2024-10-03 11:05:44 +02:00
[ tool . ruff . lint ]
2024-11-10 23:27:52 +01:00
select = [
"F" , # Enable all `Pyflakes` rules.
"D" , # Enable all `pydocstyle` rules, limiting to those that adhere to the
# Google convention via `convention = "google"`, below.
2025-06-03 08:30:37 +02:00
"S" , # Enable all `flake8-bandit` rules.
2024-10-03 11:05:44 +02:00
]
2024-11-10 23:27:52 +01:00
ignore = [
2024-12-15 14:40:03 +01:00
# Prevent errors due to ruff false positives
# ------------------------------------------
# On top of `Pyflakes (F)` to allow numpydantic Shape forward annotation
"F722" , # forward-annotation-syntax-error: forward annotations that include invalid syntax.
# Prevent errors for existing sources. Should be removed!!!
# ---------------------------------------------------------
# On top of `Pyflakes (F)`
2024-11-10 23:27:52 +01:00
"F841" , # unused-variable: Local variable {name} is assigned to but never used
2024-12-15 14:40:03 +01:00
# On top of `pydocstyle (D)`
2024-11-10 23:27:52 +01:00
"D100" , # undocumented-public-module: Missing docstring in public module
"D101" , # undocumented-public-class: Missing docstring in public class
"D102" , # undocumented-public-method: Missing docstring in public method
"D103" , # undocumented-public-function: Missing docstring in public function
"D104" , # undocumented-public-package: Missing docstring in public package
"D105" , # undocumented-magic-method: Missing docstring in magic method
"D106" , # undocumented-public-nested-class: Missing docstring in public nested class
"D107" , # undocumented-public-init: Missing docstring in __init__
"D417" , # undocumented-param: Missing argument description in the docstring for {definition}: {name}
]
[ tool . ruff . lint . pydocstyle ]
convention = "google"
2024-10-06 12:33:18 +02:00
[ tool . pytest . ini_options ]
2024-10-06 13:47:16 +02:00
minversion = "8.3.3"
2024-10-06 12:33:18 +02:00
pythonpath = [ "src" , ]
testpaths = [ "tests" , ]
2025-12-30 22:08:21 +01:00
markers = [
"docker: marks tests that require a local Docker engine"
]
2024-11-26 22:28:05 +01:00
[ tool . mypy ]
2026-02-23 20:59:03 +01:00
mypy_path = "src"
2024-11-26 22:28:05 +01:00
files = [ "src" , "tests" ]
exclude = "class_soc_calc\\.py$"
check_untyped_defs = true
warn_unused_ignores = true
[[ tool . mypy . overrides ]]
module = "akkudoktoreos.*"
disallow_untyped_defs = true
[[ tool . mypy . overrides ]]
module = "sklearn.*"
ignore_missing_imports = true
[[ tool . mypy . overrides ]]
module = "deap.*"
ignore_missing_imports = true
[[ tool . mypy . overrides ]]
module = "xprocess.*"
ignore_missing_imports = true
2025-10-28 02:50:31 +01:00
[ tool . commitizen ]
2025-11-20 00:10:19 +01:00
# Only used as linter
2025-10-28 02:50:31 +01:00
name = "cz_conventional_commits"
version_scheme = "semver"
2025-11-20 00:10:19 +01:00
# Enforce commit message and branch style:
2025-10-28 02:50:31 +01:00
branch_validation = true
branch_pattern = "^(feat|fix|chore|docs|refactor|test)/[a-z0-9._-]+$"