/opt/imh-python/lib/python3.9/site-packages/pylint/testutils
NameSizeModeActions
functional/-0755rm
_primer/-0755rm
__pycache__/-0755rm
checker_test_case.py33250644editdlrm
configuration_test.py54160644editdlrm
constants.py11590644editdlrm
decorator.py12620644editdlrm
get_test_info.py21370644editdlrm
global_test_linter.py6950644editdlrm
lint_module_test.py125380644editdlrm
output_line.py39940644editdlrm
pyreverse.py42540644editdlrm
reporter_for_tests.py23210644editdlrm
testing_pylintrc2640644editdlrm
tokenize_str.py4570644editdlrm
unittest_linter.py26920644editdlrm
utils.py31070644editdlrm
_run.py14300644editdlrm
__init__.py13190644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/pylint/testutils/constants.py (1159B)
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE # Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt import operator import re import sys from pathlib import Path SYS_VERS_STR = ( "%d%d%d" % sys.version_info[:3] # pylint: disable=consider-using-f-string ) TITLE_UNDERLINES = ["", "=", "-", "."] UPDATE_OPTION = "--update-functional-output" UPDATE_FILE = Path("pylint-functional-test-update") # Common sub-expressions. _MESSAGE = {"msg": r"[a-z][a-z\-]+"} # Matches a #, # - followed by a comparison operator and a Python version (optional), # - followed by a line number with a +/- (optional), # - followed by a list of bracketed message symbols. # Used to extract expected messages from testdata files. _EXPECTED_RE = re.compile( r"\s*#\s*(?:(?P[+-]?[0-9]+):)?" # pylint: disable=consider-using-f-string r"(?:(?P[><=]+) *(?P[0-9.]+):)?" r"\s*\[(?P{msg}(?:,\s*{msg})*)]".format(**_MESSAGE) ) _OPERATORS = {">": operator.gt, "<": operator.lt, ">=": operator.ge, "<=": operator.le}