Skip to content

Commit 41e3906

Browse files
authored
Merge pull request #1 from unnecessary-abstraction/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents e53ea9b + e3ab820 commit 41e3906

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.0.1
6+
rev: v4.3.0
77
hooks:
88
- id: check-merge-conflict
99
- id: check-symlinks
@@ -14,15 +14,15 @@ repos:
1414
- id: mixed-line-ending
1515
- id: trailing-whitespace
1616
- repo: https://github.com/fsfe/reuse-tool
17-
rev: v0.12.1
17+
rev: v1.0.0
1818
hooks:
1919
- id: reuse
2020
- repo: https://github.com/psf/black
21-
rev: 21.5b1
21+
rev: 22.8.0
2222
hooks:
2323
- id: black
24-
- repo: https://gitlab.com/pycqa/flake8
25-
rev: 3.9.2
24+
- repo: https://github.com/PyCQA/flake8
25+
rev: 5.0.4
2626
hooks:
2727
- id: flake8
2828
- repo: https://github.com/markdownlint/markdownlint

bin/archive.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,19 @@ def set_readonly(path):
7878
subprocess.run(["b2sum", *files_list], stdout=tmpf, check=True)
7979
subprocess.run(
8080
["gpg", "-as", "--clearsign", "-u", KEYID, "-o", checksum_path, tmpf.name],
81-
check=True
81+
check=True,
8282
)
8383
set_readonly(checksum_path)
8484
set_readonly(".")
8585

8686
# Create encrypted tarball
8787
tarball_path = os.path.join(out_dir, f"{IDENT}.archive")
8888
with tempfile.NamedTemporaryFile(dir=out_dir) as tmpf:
89-
subprocess.run(["tar", "-c", "--zstd", "B2SUMS", *files_list], stdout=tmpf, check=True)
90-
subprocess.run(["gpg", "-e", "-r", KEYID, "-o", tarball_path, tmpf.name], check=True)
89+
subprocess.run(
90+
["tar", "-c", "--zstd", "B2SUMS", *files_list], stdout=tmpf, check=True
91+
)
92+
subprocess.run(
93+
["gpg", "-e", "-r", KEYID, "-o", tarball_path, tmpf.name], check=True
94+
)
9195
set_readonly(tarball_path)
9296
print(f"Encrypted archive: {tarball_path}")

0 commit comments

Comments
 (0)