Skip to content

Update feature_request.yaml #767

Update feature_request.yaml

Update feature_request.yaml #767

Workflow file for this run

name: Validate code
on:
push:
pull_request:
jobs:
hassfest:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: home-assistant/actions/hassfest@master
code_quality:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: [3.10.5]
steps:
- uses: "actions/checkout@v2"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'isort==5.*' black flake8 mypy pydocstyle types-python-dateutil
pip install -r requirements.txt
- name: Change directory
run: cd custom_components/garbage_collection
- name: isort
run: isort --line-width 88 --trailing-comma -m 3 --profile black --check-only .
- name: black
run: black --check .
- name: flake8
run: flake8 --max-line-length 88 .
- name: pydocstyle
run: pydocstyle .
- name: mypy
run: mypy --ignore-missing-imports --follow-imports=silent --warn-unused-ignores custom_components/garbage_collection
bandit:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- name: Bandit Check (Python security linter)
uses: jpetrucciani/bandit-check@master
with:
path: '/custom_components/garbage_collection/'