/flake8-cached

a wrapper around flake8 to allow file level caching

Primary LanguagePythonMIT LicenseMIT

Overview

A wrapper around flake8's cli that caches results between runs at file level.

This project was generated with cookiecutter using jacebrowning/template-python.

Unix Build Status Windows Build Status Coverage Status Scrutinizer Code Quality PyPI Version PyPI License

Setup

Requirements

  • Python 3.6+

Installation

Install it directly into an activated virtual environment:

$ pip install flake8-cached

or add it to your Poetry project:

$ poetry add flake8-cached

Usage

After installation, the package can imported:

# it accepts all arguments as flake8
$ flake8-cached .

Note

It creates cache files under .cache/flake8 under the project directory. It is not cleaned up even if there is some config or python binary changes. Please remove the folder and re-run if you get stale results. It is a simple cache implementation intended to be used during development.