/ .github / workflows / python-lint.yml
python-lint.yml
 1  name: flake8 Lint
 2  
 3  on: [push, pull_request]
 4  
 5  concurrency:
 6    group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
 7    cancel-in-progress: true
 8  
 9  jobs:
10    flake8-lint:
11      runs-on: ubuntu-latest
12      name: Lint
13      steps:
14        - name: Check out source repository
15          uses: actions/checkout@v4
16        - name: Set up Python environment
17          uses: actions/setup-python@v5
18          with:
19            python-version: "3.11"
20        - name: flake8 Lint
21          uses: py-actions/flake8@v2
22          with:
23              plugins: "flake8-no-print"