REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.90 KB
Close
//proc/thread-self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/testutils/_primer/primer_prepare_command.py
Text
Base64
# 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 __future__ import annotations import sys from git.cmd import Git from git.repo import Repo from pylint.testutils._primer.primer_command import PrimerCommand class PrepareCommand(PrimerCommand): def run(self) -> None: commit_string = "" version_string = ".".join(str(x) for x in sys.version_info[:2]) if self.config.clone: for package, data in self.packages.items(): local_commit = data.lazy_clone() print(f"Cloned '{package}' at commit '{local_commit}'.") commit_string += local_commit + "_" elif self.config.check: for package, data in self.packages.items(): local_commit = Repo(data.clone_directory).head.object.hexsha print(f"Found '{package}' at commit '{local_commit}'.") commit_string += local_commit + "_" elif self.config.make_commit_string: for package, data in self.packages.items(): remote_sha1_commit = ( Git().ls_remote(data.url, data.branch).split("\t")[0] ) print(f"'{package}' remote is at commit '{remote_sha1_commit}'.") commit_string += remote_sha1_commit + "_" elif self.config.read_commit_string: with open( self.primer_directory / f"commit_string_{version_string}.txt", encoding="utf-8", ) as f: print(f.read()) if commit_string: with open( self.primer_directory / f"commit_string_{version_string}.txt", "w", encoding="utf-8", ) as f: f.write(commit_string)
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__pycache__
DIR
-
drwxr-xr-x
2026-02-06 08:01:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package_to_lint.py
4.64 KB
lrw-r--r--
2026-01-20 13:01:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
primer.py
3.97 KB
lrw-r--r--
2026-01-20 13:01:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
primer_command.py
1.08 KB
lrw-r--r--
2026-01-20 13:01:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
primer_compare_command.py
6.27 KB
lrw-r--r--
2026-01-20 13:01:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
primer_prepare_command.py
1.90 KB
lrw-r--r--
2026-01-20 13:01:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
primer_run_command.py
4.04 KB
lrw-r--r--
2026-01-20 13:01:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
379 B
lrw-r--r--
2026-01-20 13:01:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).