2023-11-20 10:35:47 +00:00
|
|
|
name: flake8 Lint
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2024-03-22 17:15:06 +00:00
|
|
|
concurrency:
|
2024-04-04 16:30:53 +00:00
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
|
2024-03-22 17:15:06 +00:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-11-20 10:35:47 +00:00
|
|
|
jobs:
|
|
|
|
flake8-lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Lint
|
|
|
|
steps:
|
|
|
|
- name: Check out source repository
|
2024-04-03 18:01:13 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-20 10:35:47 +00:00
|
|
|
- name: Set up Python environment
|
2024-04-03 18:01:13 +00:00
|
|
|
uses: actions/setup-python@v5
|
2023-11-20 10:35:47 +00:00
|
|
|
with:
|
|
|
|
python-version: "3.11"
|
|
|
|
- name: flake8 Lint
|
|
|
|
uses: py-actions/flake8@v2
|
|
|
|
with:
|
2024-02-12 08:38:44 +00:00
|
|
|
ignore: "E203,E211,E221,E225,E231,E241,E251,E261,E266,E501,E701,E704,W503"
|
2023-11-20 10:35:47 +00:00
|
|
|
exclude: "examples/*,examples/*/**,*/**/__init__.py"
|