Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A flake8 extension to find any code snippets you don't like

Project Description

A flake8 extension to find any code snippets you don’t like.

Flake8 is a tool to combine different apps (like pep8) and therefore to guarantee clean Python code.

Read more:


To get the latest stable release from PyPi

$ pip install flake8-snippets

To get the latest commit from GitHub

$ pip install -e git+git://


Simply enhance the flake8 command with the --snippet setting and add a comma-separated list

flake8 --statistics --snippets='# TODO' .


flake8 --statistics --snippets='import ipdb,ipdb.set_trace()' .


If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 flake8-snippets
$ python install

$ git co -b feature_branch master
# Implement your feature and tests
$ git add . && git commit
$ git push -u origin feature_branch
# Send us a pull request for your feature branch

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.0 kB) Copy SHA256 Hash SHA256
Source None Apr 1, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate