Merge pull request #2038 from Blackymas/dev

Update Python validation
This commit is contained in:
Edward Firmo
2024-04-10 13:04:35 +02:00
committed by GitHub

View File

@@ -12,22 +12,20 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
flake8_py3: flake8-lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Lint
steps: steps:
- name: Setup Python - name: Check out source repository
uses: actions/setup-python@v1
with:
python-version: 3.7.17
architecture: x64
- name: Checkout PyTorch
uses: actions/checkout@main uses: actions/checkout@main
- name: Install flake8 - name: Set up Python environment
run: pip install flake8 uses: actions/setup-python@main
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with: with:
checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name python-version: "3.11"
env: - name: flake8 Lint
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} uses: py-actions/flake8@v2
with:
ignore: "F401" # To do: remove for v4.4
max-line-length: "200"
path: "components/nspanel_ha_blueprint"
... ...