# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt from pylint import checkers from pylint.lint import PyLinter from pylint.testutils.reporter_for_tests import GenericTestReporter def create_test_linter() -> PyLinter: test_reporter = GenericTestReporter() linter_ = PyLinter() linter_.set_reporter(test_reporter) linter_.config.persistent = 0 checkers.initialize(linter_) return linter_ # Can't be renamed to a constant (easily), it breaks countless tests linter = create_test_linter()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
_primer | Folder | 0755 |
|
|
functional | Folder | 0755 |
|
|
__init__.py | File | 1.28 KB | 0644 |
|
_run.py | File | 1.51 KB | 0644 |
|
checker_test_case.py | File | 4.27 KB | 0644 |
|
configuration_test.py | File | 5.89 KB | 0644 |
|
constants.py | File | 1.12 KB | 0644 |
|
decorator.py | File | 1.22 KB | 0644 |
|
functional_test_file.py | File | 635 B | 0644 |
|
get_test_info.py | File | 2.08 KB | 0644 |
|
global_test_linter.py | File | 685 B | 0644 |
|
lint_module_test.py | File | 12.5 KB | 0644 |
|
output_line.py | File | 5.76 KB | 0644 |
|
pyreverse.py | File | 4.1 KB | 0644 |
|
reporter_for_tests.py | File | 2.25 KB | 0644 |
|
testing_pylintrc | File | 198 B | 0644 |
|
tokenize_str.py | File | 447 B | 0644 |
|
unittest_linter.py | File | 2.73 KB | 0644 |
|
utils.py | File | 3.06 KB | 0644 |
|