A GitHub action that checks Python code using black and flake8.
black
flake8
flake8-bandit
flake8-bugbear
flake8-deprecated
flake8-executable
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"
}
#!/bin/sh -l
black --quiet --check .
flake8 .