Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 4, 2023
1 parent 7e4bf0a commit 7ed2ae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monty/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from gzip import GzipFile
from pathlib import Path
from typing import Literal

from .io import zopen


Expand Down Expand Up @@ -62,7 +63,7 @@ def gzip_dir(path: str | Path, compresslevel: int = 6) -> None:
os.remove(full_f)


def compress_file(filepath: str | Path, compression: Literal["gz", "bz2"] ="gz") -> None:
def compress_file(filepath: str | Path, compression: Literal["gz", "bz2"] = "gz") -> None:
"""
Compresses a file with the correct extension. Functions like standard
Unix command line gzip and bzip2 in the sense that the original
Expand Down

0 comments on commit 7ed2ae6

Please sign in to comment.