Add linting for strict typing, upgrade tests to HA 2023.4.6 #283
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
paths: | |
- '**.py' | |
pull_request: | |
paths: | |
- '**.py' | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Checkout Powercalc | |
uses: actions/checkout@master | |
- name: Install flake8 | |
run: pip install flake8 flake8-async flake8-warnings | |
- name: Run flake8 | |
uses: suo/flake8-github-action@releases/v1 | |
with: | |
checkName: 'flake8' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |