Skip to content

disbaled-buggy-Stable7 7.1.13 #1198

disbaled-buggy-Stable7 7.1.13

disbaled-buggy-Stable7 7.1.13 #1198

Workflow file for this run

name: Python check
on:
push:
branches:
- develop
- stable6
paths:
- "**.py"
pull_request:
paths:
- "**.py"
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade
- run: bandit -r . || true
- run: black --check . || true
- run: codespell --quiet-level=2 --skip="./www" || true # --ignore-words-list=""
# `--builtins=Devices,Parameters` should be removed once domoticz/domoticz#4720 or simlar has been released
- run: flake8 . --builtins=Devices,Parameters,Connection --count --select=E9,F63,F7,F82 --show-source --statistics
- run: isort --check-only --profile black . || true
- run: pip install -r requirements.txt || true
- run: mypy --ignore-missing-imports . || true
- run: pytest . || true
- run: pytest --doctest-modules . || true
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true