Skip to main content

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: http://flake8.readthedocs.org/en/latest/

Installation

To get the latest stable release from PyPi

$ pip install flake8-snippets

To get the latest commit from GitHub

$ pip install -e git+git://github.com/bitmazk/flake8-snippets.git#egg=flake8_snippets

Usage

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

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

or

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

Contribute

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 setup.py 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

Project details


Download files

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

Source Distribution

flake8-snippets-0.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file flake8-snippets-0.2.tar.gz.

File metadata

File hashes

Hashes for flake8-snippets-0.2.tar.gz
Algorithm Hash digest
SHA256 6b9c3e041045b0c22f65fbeb92b9dff31d523797279eada6183cdc9928de6b3f
MD5 2b2c1fbfd35a8e69d3aef4bd83805af5
BLAKE2b-256 c10cbc119ffe4bce7d98fc9ff6e716f29af862235cf3450c345fc51127199eef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page