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 and pylint_runner# where # represents the major version of python you installed with. Much like pip, if installed for both python2 and python3, you will see both pylint_runner2 and pylint_runner3 which can be used to run this code.

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.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pylint_runner-0.5.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pylint_runner-0.5.0.tar.gz
Algorithm Hash digest
SHA256 594e60ad7e3776cdd2b82abfa1261bd61983f4dee6e1c4d24cb8ee9bd0d7dd34
MD5 6feddc2a36038c0a1215b56eb14eed2b
BLAKE2b-256 4bc8795a375995e79b4f273ee839750a5c7b1a90d16d3374551126885ffb433b

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