Skip to main content

Run pylint recursively on all py files in current and sub directories

Project description

Build Status Coverage Status PyPI Version Supported Python Versions License

A simple pylint application that scans the current directory and any sub-directories recursively, then runs pylint on all discovered .py files.

Dependencies

Installation

Preferred installation method:

pip install pylint_runner

From source:

python setup.py install

When installed, this will create an executable pylint_runner, pylint_runner#, and pylint_runner#.# where the first # represents the major version of Python (2 or 3) and the second # represents the minor version of Python. So if installed by Python 2.7, you will have available pylint_runner, pylint_runner2, and pylint_runner2.7 so as to allow usage by however many installed versions of python on the system as pylint is version dependent on its output (due to using the Python AST).

Usage

pylint_runner

Output is standard pylint output. There should be no output if no issues were found.

In case of issues, you should see output similar to:

************* Module foo.bar
C: 24, 0: Missing function docstring (missing-docstring)
************* Module tests.foo_tester
C: 19, 0: Final newline missing (missing-final-newline)
C: 19, 0: Invalid constant name "a" (invalid-name)

Additional Arguments

See the standard help ouput:

pylint_runner -h

Verbose mode

pylint_runner -v

Verbose mode lists all files that were found for testing immediately, along with the pylint output.

This will generate (if run against this repo):

Using pylint 1.6.5 for python 2.7.11
pylint running on the following files:
- pylint_runner/__init__.py
- pylint_runner/main.py
- setup.py
- tests/__init__.py
- tests/test_runner.py
- tests/tests/dummy.py

************* Module tests.test_runner
I:  1, 0: Locally disabling missing-docstring (C0111) (locally-disabled)

rcfile

This allows you to specify a pylintrc file to be used using –rcfile path_to_file.

It may be a relative, or absolute path and defaults to .pylintrc at the current working directory.

It will read the value of ignore from the rcfile and ignore any matching files/folders while building the list of files to pass to python.

It will also pass that rcfile for use by pylint.

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_runner-0.5.4.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_runner-0.5.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pylint_runner-0.5.4.tar.gz.

File metadata

  • Download URL: pylint_runner-0.5.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pylint_runner-0.5.4.tar.gz
Algorithm Hash digest
SHA256 bc44a39ad93ffa865f282dff26632ac78b60ce53c417d4b1de82b52842d1e6e8
MD5 be621f7ca84fa83e4e231805ac05e9fd
BLAKE2b-256 4af8cdfcbacf47ee7533599cf14e8aea6ee9c52b4e6af3198cad98d855b3f4bb

See more details on using hashes here.

File details

Details for the file pylint_runner-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: pylint_runner-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pylint_runner-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e04d72471a9225db6734334ec578ac37b47130625553df149ca6a20ecd565a9
MD5 6f5f9756e01b123e3909f9594e515769
BLAKE2b-256 2998ec3f113d6e8edc481513b0c5107ad672ee2147f9b890f82c6614ddb4e35d

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