Pronto runner for flake8

Gem Version Build Status Code Climate Test Coverage Dependency Status

Pronto runner for flake8, a Python Style Guide Enforcer. What is Pronto?

Configuration of pronto-flake8

  • flake8 should be in your path or virtual environment.
  • pronto-flake8 can be configured by placing a .pronto_flake8.yml inside the directory where pronto is run.

Following options are available:

Option Meaning Default
flake8_executable flake8 executable to call. flake8 (calls flake8 in PATH)

Example configuration to call custom flake8 executable:

# .pronto_flake8.yml
flake8_executable: '/my/custom/path/flake8'

Contribution Guidelines

Installation

git clone this repo and cd pronto-flake8

Ruby

brew install cmake # or your OS equivalent
brew install rbenv # or your OS equivalent
rbenv install 2.4.5
rbenv global 2.4.5 # or make it project specific
gem install bundle
gem install pronto
bundle install

Python


virtualenv venv # tested on Python 3.6
source venv/bin/activate
pip install -r requirements.txt

Make your changes

git checkout -b <new_feature>
# make your changes
bundle exec rspec
gem build pronto-flake8.gemspec
gem install pronto-flake8-<current_version>.gem # get current version from previous command
uncomment the line in dummy_package/dummy.py
pronto run --unstaged

It should show

dummy_package/dummy.py:1 E: E731 do not assign a lambda expression, use a def