Skip to main content

Flake8 lint for newline after class definitions.

Project description

Flake8 Extension to lint for a newline after a Class definition
===========================================

.. image:: https://travis-ci.org/AlexvEck/flake8-class-newline.svg?branch=master
:target: https://travis-ci.org/AlexvEck/flake8-class-newline
:alt: Build Status

Usage
-----

If you are using flake8, you can install this package through pip.

.. code:: shell

pip install flake8-class-newline

This plugin is then automatically triggered when you run;

.. code:: shell

flake8

It produces only 1 error type; "CNL100: Class definition does not have a new line."

NOTE; Documentation blocks (or docblocks) should be on the newline, they are therefore ignored by this plugin. See https://www.python.org/dev/peps/pep-0008/#documentation-strings


Special Notice
-----

This package was inspired by flake8-quotes created by @zheller.
Thanks for the inspiration!

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-class-newline-1.3.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file flake8-class-newline-1.3.0.tar.gz.

File metadata

File hashes

Hashes for flake8-class-newline-1.3.0.tar.gz
Algorithm Hash digest
SHA256 d5fa43a5afed7e7284e83a350b1794802c59c8851ded54a58921944bb5cb774c
MD5 d901fea4e6fa75ff93961fa359110c82
BLAKE2b-256 a5e622eb66764e61346aafdd2d500cc30fac8d0cee405a29c3094f4d7afe0ae0

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