Skip to content

konstruktoid/action-pylint

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Python linting and testing using black and flake8

A GitHub action that checks Python code using black and flake8.

Tools installed

black
flake8
flake8-bandit
flake8-bugbear
flake8-deprecated
flake8-executable

Github Actions configuration examples

on: [push, pull_request]
name: Python Linting
jobs:
  PythonLinting:
    name: Python linting
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Konstruktoid Python linting
        uses: konstruktoid/action-pylint@master
workflow "Python Linting" {
  on = "push"
  resolves = ["python-linting"]
}

action "python-linting" {
  uses = "konstruktoid/action-pylint@master"
}

Script

#!/bin/sh -l

black --quiet --check .
flake8 .