File: flake8.yml

package info (click to toggle)
incant 0.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: python: 1,482; sh: 35; makefile: 10; ruby: 1
file content (23 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: flake8

on: [push, pull_request]

jobs:
  flake8-lint:
    runs-on: ubuntu-latest
    name: Lint
    steps:
      - name: Check out source repository
        uses: actions/checkout@v3
      - name: Set up Python environment
        uses: actions/setup-python@v4
        with:
          python-version: "3.11"
      - name: Install dependencies
      run: |
        set -x
        python -m pip install --upgrade pip
        pip install poetry
        poetry install --no-interaction --no-root
    - name: Run Flake8
      run: poetry run flake8 .