Skip to content

Fix formatting for aiohttp post #2004

Fix formatting for aiohttp post

Fix formatting for aiohttp post #2004

Workflow file for this run

name: Code checker
on:
push:
pull_request:
schedule:
- cron: "0 4 * * *"
jobs:
validate:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.11"
- "3.12"
env:
SRC_FOLDER: tibber
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install depencency
run: |
pip install -r requirements.txt
pip install dlint black flake8 flake8-bugbear flake8-deprecated flake8-executable isort pylint pytest pytest-cov pytest-asyncio mypy ruff
- name: Flake8 Code Linter
run: |
flake8 $SRC_FOLDER
- name: isort
run: |
isort --check-only **/*.py
- name: Pylint Code Linter
run: |
pylint --enable useless-suppression $SRC_FOLDER
- name: MyPy
run: |
mypy $SRC_FOLDER
- name: black
run: black --check $SRC_FOLDER
- name: ruff
run: ruff check $SRC_FOLDER
- name: pytest
run: |
pytest test/test.py