Pronto runner for flake8

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

Configuration of pronto-flake8

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.5.7
rbenv global 2.5.7 # 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

Instructions for maintainers

git checkout -b <new_feature> # or for core maintainer, just pull master after accepting merge
# make your changes
bundle exec rspec
# Update the version in `lib/pronto/flake8/version.rb` to the next version
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