From 33cfc77f316ffdbb42b2cf42c20153934f3add3b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Sep 2022 21:01:01 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.3.0) - [github.com/fsfe/reuse-tool: v0.12.1 → v1.0.0](https://github.com/fsfe/reuse-tool/compare/v0.12.1...v1.0.0) - [github.com/psf/black: 21.5b1 → 22.8.0](https://github.com/psf/black/compare/21.5b1...22.8.0) - https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8 - [github.com/PyCQA/flake8: 3.9.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/3.9.2...5.0.4) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa99eac..7b31735 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.3.0 hooks: - id: check-merge-conflict - id: check-symlinks @@ -14,15 +14,15 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/fsfe/reuse-tool - rev: v0.12.1 + rev: v1.0.0 hooks: - id: reuse - repo: https://github.com/psf/black - rev: 21.5b1 + rev: 22.8.0 hooks: - id: black -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 +- repo: https://github.com/PyCQA/flake8 + rev: 5.0.4 hooks: - id: flake8 - repo: https://github.com/markdownlint/markdownlint From e3ab820af10717d3683809bab6c5524d35225839 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Sep 2022 21:01:09 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- bin/archive.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/archive.py b/bin/archive.py index 04543d4..cdc6008 100755 --- a/bin/archive.py +++ b/bin/archive.py @@ -78,7 +78,7 @@ def set_readonly(path): subprocess.run(["b2sum", *files_list], stdout=tmpf, check=True) subprocess.run( ["gpg", "-as", "--clearsign", "-u", KEYID, "-o", checksum_path, tmpf.name], - check=True + check=True, ) set_readonly(checksum_path) set_readonly(".") @@ -86,7 +86,11 @@ def set_readonly(path): # Create encrypted tarball tarball_path = os.path.join(out_dir, f"{IDENT}.archive") with tempfile.NamedTemporaryFile(dir=out_dir) as tmpf: - subprocess.run(["tar", "-c", "--zstd", "B2SUMS", *files_list], stdout=tmpf, check=True) - subprocess.run(["gpg", "-e", "-r", KEYID, "-o", tarball_path, tmpf.name], check=True) + subprocess.run( + ["tar", "-c", "--zstd", "B2SUMS", *files_list], stdout=tmpf, check=True + ) + subprocess.run( + ["gpg", "-e", "-r", KEYID, "-o", tarball_path, tmpf.name], check=True + ) set_readonly(tarball_path) print(f"Encrypted archive: {tarball_path}")