Skip to content

Repository files navigation

flake8-github-actions

GitHub Actions integration for flake8.

TestsLinux Test StatusWindows Test StatusmacOS Test StatusCoverage
PyPIPyPI - Package VersionPyPI - Supported Python VersionsPyPI - Supported ImplementationsPyPI - Wheel
ActivityGitHub last commitGitHub commits since tagged versionMaintenancePyPI - Downloads
QACodeFactor GradeFlake8 Statusmypy status
OtherLicenseGitHub top languageRequirements Status

Installation

flake8-github-actions can be installed from PyPI.

To install with pip:

$ python -m pip install flake8-github-actions

Use with GitHub Actions

Example workflow:

---
name: Flake8on:
push:
pull_request:
branches: ["master"]jobs:
Run:
name: "Flake8"runs-on: "ubuntu-18.04"steps:
- name: Checkout 🛎️uses: "actions/checkout@v2"
- name: Setup Python 🐍uses: "actions/setup-python@v2"with:
python-version: "3.8"
- name: Install dependencies 🔧run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install flake8 python -m pip install flake8-github-actions - name: "Run Flake8"run: "flake8 --format github"

The annotations will look something like:

https://raw.githubusercontent.com/domdfcoding/flake8-github-actions/master/example_annotations.png

About

GitHub Actions integration for flake8.

Topics

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages