Skip to content
check-circle

GitHub Action

python-flake8

v2.0.2 Latest version

python-flake8

check-circle

python-flake8

Run flake8 python code linting

Installation

Copy and paste the following snippet into your .yml file.

              

- name: python-flake8

uses: julianwachholz/flake8-action@v2.0.2

Learn more about this action in julianwachholz/flake8-action

Choose a version

flake8-action status

flake8-action

Run flake8 on your Python code.

Usage

Create a workflow file in your repository:

name: Code Quality

on:
  push:
    paths:
      - "**.py"

jobs:
  lint:
    name: Python Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: "3.9"
      - name: Run flake8
        uses: julianwachholz/flake8-action@v2
        with:
          checkName: "Python Lint"
          path: path/to/files
          plugins: flake8-spellcheck
          config: path/to/flake8.ini
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

See the actions tab for runs of this action! 🚀