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