Skip to main content

flake8-snippets

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

Metadata

Release files for flake8-snippets 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-snippets 0.2
File Size Uploaded Provenance Actions
flake8-snippets-0.2.tar.gz 4.0 kB Without provenance Details for flake8-snippets-0.2.tar.gz

Release files / flake8-snippets-0.2.tar.gz

Download URL flake8-snippets-0.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6b9c3e041045b0c22f65fbeb92b9dff31d523797279eada6183cdc9928de6b3f
BLAKE2b-256 checksum
How to use checksums
c10cbc119ffe4bce7d98fc9ff6e716f29af862235cf3450c345fc51127199eef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for flake8-snippets 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page