Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #429

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 24.1.1
hooks:
- id: black
language_version: python3.9
Expand Down
8 changes: 5 additions & 3 deletions src/pushsource/_impl/backend/staged/staged_ami.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ def __push_item(self, leafdir, metadata, entry):

image_kwargs.update(
{
"boot_mode": BootMode(attributes.get("boot_mode"))
if attributes.get("boot_mode")
else None
"boot_mode": (
BootMode(attributes.get("boot_mode"))
if attributes.get("boot_mode")
else None
)
}
)

Expand Down
1 change: 1 addition & 0 deletions src/pushsource/_impl/list_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
https://release-engineering.github.io/pushsource/userguide.html

"""

import logging
import os
from argparse import ArgumentParser, RawDescriptionHelpFormatter
Expand Down
6 changes: 3 additions & 3 deletions src/pushsource/_impl/model/ami.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ def _from_data(cls, data):
"sriov_net_support": data["sriov_net_support"],
"ena_support": data.get("ena_support"),
"uefi_support": data.get("uefi_support"),
"boot_mode": BootMode(data.get("boot_mode"))
if data.get("boot_mode")
else None,
"boot_mode": (
BootMode(data.get("boot_mode")) if data.get("boot_mode") else None
),
"billing_codes": AmiBillingCodes._from_data(
data.get("billing_codes") or {}
),
Expand Down
1 change: 1 addition & 0 deletions src/pushsource/_impl/model/erratum_fixup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
tries to eval some code of the form "<attr_name> = ...", which will never
work if the name is a keyword.
"""

import inspect


Expand Down
1 change: 1 addition & 0 deletions tests/model/test_errata_from.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for special handling of "from" field on errata."""

from pytest import raises
import attr

Expand Down
Loading