Replace python validation
This commit is contained in:
3
.flake8
3
.flake8
@@ -1,3 +0,0 @@
|
|||||||
[flake8]
|
|
||||||
max-line-length = 200
|
|
||||||
ignore = F401 # To do: remove this before v4.4
|
|
||||||
25
.github/workflows/validate_python.yml
vendored
25
.github/workflows/validate_python.yml
vendored
@@ -12,22 +12,19 @@ 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
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up Python environment
|
||||||
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.7.17
|
python-version: "3.11"
|
||||||
architecture: x64
|
- name: flake8 Lint
|
||||||
- name: Checkout PyTorch
|
uses: py-actions/flake8@v2
|
||||||
uses: actions/checkout@main
|
|
||||||
- name: Install flake8
|
|
||||||
run: pip install flake8
|
|
||||||
- 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
|
ignore: "F401"
|
||||||
env:
|
max-line-length: "200"
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user