We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e53ea9b + e3ab820 commit 41e3906Copy full SHA for 41e3906
.pre-commit-config.yaml
@@ -3,7 +3,7 @@
3
4
repos:
5
- repo: https://github.com/pre-commit/pre-commit-hooks
6
- rev: v4.0.1
+ rev: v4.3.0
7
hooks:
8
- id: check-merge-conflict
9
- id: check-symlinks
@@ -14,15 +14,15 @@ repos:
14
- id: mixed-line-ending
15
- id: trailing-whitespace
16
- repo: https://github.com/fsfe/reuse-tool
17
- rev: v0.12.1
+ rev: v1.0.0
18
19
- id: reuse
20
- repo: https://github.com/psf/black
21
- rev: 21.5b1
+ rev: 22.8.0
22
23
- id: black
24
-- repo: https://gitlab.com/pycqa/flake8
25
- rev: 3.9.2
+- repo: https://github.com/PyCQA/flake8
+ rev: 5.0.4
26
27
- id: flake8
28
- repo: https://github.com/markdownlint/markdownlint
bin/archive.py
@@ -78,15 +78,19 @@ def set_readonly(path):
78
subprocess.run(["b2sum", *files_list], stdout=tmpf, check=True)
79
subprocess.run(
80
["gpg", "-as", "--clearsign", "-u", KEYID, "-o", checksum_path, tmpf.name],
81
- check=True
+ check=True,
82
)
83
set_readonly(checksum_path)
84
set_readonly(".")
85
86
# Create encrypted tarball
87
tarball_path = os.path.join(out_dir, f"{IDENT}.archive")
88
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)
+ subprocess.run(
+ ["tar", "-c", "--zstd", "B2SUMS", *files_list], stdout=tmpf, check=True
91
+ )
92
93
+ ["gpg", "-e", "-r", KEYID, "-o", tarball_path, tmpf.name], check=True
94
95
set_readonly(tarball_path)
96
print(f"Encrypted archive: {tarball_path}")
0 commit comments