Skip to main content

Pylint plugin to limit the number of lines in a class.

Project description

pylint-class-lines

Pylint plugin to limit the number of lines in a class.

Installation

pip install pylint-class-lines

Usage

Run pylint-class-lines with other pylint checkers:

pylint --load-plugins=pylint_class_lines {YOUR_MODULE_OR_PACKAGE}

Run only pylint-class-lines:

pylint --load-plugins=pylint_class_lines --disable=all --enable=class-lines {YOUR_MODULE_OR_PACKAGE}

Run pylint-class-lines with custom maximum class lines:

pylint --load-plugins=pylint_class_lines --max-class-lines=100 {YOUR_MODULE_OR_PACKAGE}

Note: default max-class-lines is 150.

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

pylint_class_lines-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylint_class_lines-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pylint_class_lines-0.1.0.tar.gz.

File metadata

  • Download URL: pylint_class_lines-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for pylint_class_lines-0.1.0.tar.gz
Algorithm Hash digest
SHA256 acafa3d8facc59e508383860e890bbc51a789d2b4240a1d94f9335357af4c4b2
MD5 a3da590c87c943e813b41c908e280e05
BLAKE2b-256 34e5f3e23ff8ec91dacb24878c0d24e6774e3a288a7a4a3480f3bc12e34a96ed

See more details on using hashes here.

File details

Details for the file pylint_class_lines-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pylint_class_lines-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48838ceb2e83a56a14ac59c972d38deb28cd67f972b222b32708c206a4c3c9f2
MD5 f6330ae3c3e195110435f42369260569
BLAKE2b-256 69ed15e3239eb90574bf2c531cab397bddb345730db03ea3cc1a96e3b2185a92

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