Skip to content

Commit cfb444e

Browse files
[pre-commit.ci] pre-commit autoupdate (#694)
<!--pre-commit.ci start--> updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](psf/black-pre-commit-mirror@25.12.0...26.1.0) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3ca972d commit cfb444e

24 files changed

+13
-34
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black-pre-commit-mirror
3-
rev: 25.12.0
3+
rev: 26.1.0
44
hooks:
55
- id: black
66

docs/ext/attr_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def add_attr_types(app, what, name, obj, options, lines):
2424
# For any other cases we'll do nothing.
2525
return
2626

27-
(klass_name, field_name) = components[1:]
27+
klass_name, field_name = components[1:]
2828
klass = getattr(sys.modules["pushsource"], klass_name)
2929

3030
if not attr.has(klass):

examples/dump-pub-staged

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def run(args):
1717

1818
kwargs = {"source": "staged"}
1919
for kv_str in args.kv:
20-
(key, value) = kv_str.split("=")
20+
key, value = kv_str.split("=")
2121
kwargs[key] = value
2222

2323
# If no date was applied, always force one to avoid overloading

src/pushsource/_impl/backend/pub_source/pub_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import requests
88
from more_executors import Executors
99

10-
1110
LOG = logging.getLogger("pushsource.pub_client")
1211

1312

src/pushsource/_impl/list_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def format_python_black(item):
7474
proc = subprocess.Popen( # pylint: disable=consider-using-with
7575
["black", "-c", code], universal_newlines=True, stdout=subprocess.PIPE
7676
)
77-
(out, _) = proc.communicate()
77+
out, _ = proc.communicate()
7878
if proc.returncode:
7979
raise RuntimeError("Cannot format with black, exit code %s" % proc.returncode)
8080
return out

src/pushsource/_impl/model/azure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from .conv import in_, instance_of, optional_str, optional
77
from .vms import VMIPushItem, VMIRelease
88

9-
109
VHDGeneration = ["V1", "V2"]
1110

1211

src/pushsource/_impl/model/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
)
1919
from ..reader import PushItemReader
2020

21-
2221
LOG = logging.getLogger("pushsource")
2322
CHUNKSIZE = int(os.environ.get("PUSHSOURCE_CHUNKSIZE") or 1024 * 1024 * 16)
2423

@@ -66,7 +65,7 @@ def _from_nvr(cls, nvr_str):
6665
rvn_rev = nvr_rev.split("-", 2)
6766

6867
# Unreverse: ['2.el8.next', '5.83.0', 'kf5-kio']
69-
(r, v, n) = [s[::-1] for s in rvn_rev]
68+
r, v, n = [s[::-1] for s in rvn_rev]
7069

7170
return cls(name=n, version=v, release=r)
7271

src/pushsource/_impl/model/container.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from .. import compat_attr as attr
88
from .conv import instance_of, optional_str
99

10-
1110
MEDIA_TYPE_ORDER = {
1211
"application/vnd.docker.distribution.manifest.list.v2+json": 30,
1312
"application/vnd.docker.distribution.manifest.v2+json": 20,

src/pushsource/_impl/model/conv.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from .. import compat_attr as attr
1212

13-
1413
LOG = logging.getLogger("pushsource")
1514
HEX_PATTERN = re.compile(r"^[0-9a-f]+$")
1615

src/pushsource/_impl/model/productid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from .. import compat_attr as attr
1010
from ..utils.openers import open_src_local
1111

12-
1312
# Red Hat OID namespace is "1.3.6.1.4.1.2312.9",
1413
# the trailing ".1" designates a Product Certificate.
1514
OID_NAMESPACE = "1.3.6.1.4.1.2312.9.1."

0 commit comments

Comments
 (0)