All Projects → MasterOdin → pylint_runner

MasterOdin / pylint_runner

Licence: MIT license
Python module that recursively runs pylint on python files in current directory and any sub-directories

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to pylint runner

Pythonvscode
This extension is now maintained in the Microsoft fork.
Stars: ✭ 2,013 (+10494.74%)
Mutual labels:  pylint
python-lint
GitHub Action for Lint your code
Stars: ✭ 57 (+200%)
Mutual labels:  pylint
pylint-pycharm
A plugin providing both real-time and on-demand scanning of Python files with PyLint from within PyCharm/IDEA.
Stars: ✭ 154 (+710.53%)
Mutual labels:  pylint
codeX
CodeX is a platform which converts code into easy to understand language.
Stars: ✭ 46 (+142.11%)
Mutual labels:  pylint
export-dynamodb
Export Amazon DynamoDb to CSV or JSON
Stars: ✭ 52 (+173.68%)
Mutual labels:  pylint
micropython-stubs
Stubs of common micropython modules to aid in code completion, static typechecking and overall development
Stars: ✭ 46 (+142.11%)
Mutual labels:  pylint
continuous-integration-with-python
How to test your python code. How to automatically run your tests for your Python code. How to get reports of the tests coverage
Stars: ✭ 25 (+31.58%)
Mutual labels:  pylint
pylint-pytest
A Pylint plugin to suppress pytest-related false positives.
Stars: ✭ 2 (-89.47%)
Mutual labels:  pylint
vscode-linter
Extension for code linting, all in one package. New linters can be easily added through an extension framework.
Stars: ✭ 47 (+147.37%)
Mutual labels:  pylint

pylint_runner

Test Suite 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

NOTE: Unused options and arguments will be passed directly to pylint. For example, doing pylint_runner -d C0103 -d E0602 will cause pylint -d C0103 -d E0602 on each file.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].