Add settings and extension recommendations (#139)

- Added recommended settings for the Pylance and Pyright extensions
- Enabled pytest and debugging support in configuration
- Reformatted code with Prettier
---------
Co-authored-by: Chris <git@nootch.de>
This commit is contained in:
Chris
2024-11-10 23:00:16 +01:00
committed by GitHub
parent 1ed06fc270
commit de9fe2ddc9
10 changed files with 135 additions and 84 deletions

View File

@@ -1,22 +1,22 @@
---
networks:
eos:
name: 'eos'
name: "eos"
services:
eos:
image: 'akkudoktor/eos:${EOS_VERSION}'
image: "akkudoktor/eos:${EOS_VERSION}"
read_only: true
build:
context: .
dockerfile: 'Dockerfile'
dockerfile: "Dockerfile"
args:
PYTHON_VERSION: '${PYTHON_VERSION}'
PYTHON_VERSION: "${PYTHON_VERSION}"
init: true
environment:
FLASK_RUN_PORT: '${EOS_PORT}'
FLASK_RUN_PORT: "${EOS_PORT}"
networks:
- 'eos'
- "eos"
volumes:
- ./src/akkudoktoreos/config.py:/opt/eos/akkudoktoreos/config.py:ro
ports:
- '${EOS_PORT}:${EOS_PORT}'
- "${EOS_PORT}:${EOS_PORT}"