Skip to main content

code checking using pep8 and pyflakes

Project description

Flake8 is just a merge of the PyFlakes and the pep8 projects into one single script.

It runs both tests by launching the single ‘flake8’ script, but ignores pep8 options and just uses its defaults.

It also adds a few features:

  • lines that contains a “# NOQA” comment at the end will not issue a warning

  • merging pep8 and pyflakes options

  • a Mercurial hook

  • more things to come..

Original projects:

Mercurial hook

To use the Mercurial hook on any commit or qrefresh, change your .hg/rc file like this:

[hooks]
commit = python:flake8.hg_hook
qrefresh = python:flake8.hg_hook

[flake8]
strict = 0

If strict option is set to 1, any warning will block the commit. When strict is set to 0, warnings are just displayed in the standard output.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

flake8-0.2.tar.gz (29.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: flake8-0.2.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flake8-0.2.tar.gz
Algorithm Hash digest
SHA256 e27fababa29d7ab994a806404a386ed5abbbd58a88271eb458fefda1aecdd2c1
MD5 0c48f71beaaa1464e8e7dd395b70905f
BLAKE2b-256 46b863dbf6241992e2490b23d1bbf8d1af628210474431360a0e41456f8e1f36

See more details on using hashes here.

Supported by

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