mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
black: Reformat with Black 23.
Black 23 enforces some slightly more specific rules about empty line
counts and redundant parenthesis removal, but the result is still
compatible with Black 22.
(This does not actually upgrade our Python environment to Black 23
yet.)
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit df001db1a9)
This commit is contained in:
committed by
Tim Abbott
parent
25609fb675
commit
7a34e9a3fd
@@ -241,7 +241,6 @@ def create_log_entry(
|
||||
copied_packages: Set[str],
|
||||
new_packages: Set[str],
|
||||
) -> None:
|
||||
|
||||
venv_path = os.path.dirname(target_log)
|
||||
with open(target_log, "a") as writer:
|
||||
writer.write(f"{venv_path}\n")
|
||||
@@ -289,7 +288,6 @@ def setup_virtualenv(
|
||||
requirements_file: str,
|
||||
patch_activate_script: bool = False,
|
||||
) -> str:
|
||||
|
||||
sha1sum = generate_hash(requirements_file)
|
||||
# Check if a cached version already exists
|
||||
if target_venv_path is None:
|
||||
@@ -320,7 +318,6 @@ def add_cert_to_pipconf() -> None:
|
||||
|
||||
|
||||
def do_setup_virtualenv(venv_path: str, requirements_file: str) -> None:
|
||||
|
||||
# Set up Python virtualenv
|
||||
new_packages = set(get_package_names(requirements_file))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user