diff --git a/.github/workflows/stylish.yml b/.github/workflows/stylish.yml index 0d5ecdb040..434a304cb5 100644 --- a/.github/workflows/stylish.yml +++ b/.github/workflows/stylish.yml @@ -24,7 +24,7 @@ jobs: - uses: psf/black@stable with: - version: "23.3.0" + version: "24.3.0" - name: Setup flake8 annotations uses: rbialon/flake8-annotations@v1 diff --git a/src/rhsmlib/services/register.py b/src/rhsmlib/services/register.py index aa3d451844..76e1669088 100644 --- a/src/rhsmlib/services/register.py +++ b/src/rhsmlib/services/register.py @@ -144,9 +144,9 @@ def register( syspurposelib.write_syspurpose(syspurpose) syspurpose_dict = { - "service_level_agreement": consumer["serviceLevel"] - if "serviceLevel" in list(consumer.keys()) - else "", + "service_level_agreement": ( + consumer["serviceLevel"] if "serviceLevel" in list(consumer.keys()) else "" + ), "role": consumer["role"] if "role" in list(consumer.keys()) else "", "usage": consumer["usage"] if "usage" in list(consumer.keys()) else "", "addons": consumer["addOns"] if "addOns" in list(consumer.keys()) else [], diff --git a/src/subscription_manager/branding/__init__.py b/src/subscription_manager/branding/__init__.py index f435976ced..bd6db49591 100644 --- a/src/subscription_manager/branding/__init__.py +++ b/src/subscription_manager/branding/__init__.py @@ -67,7 +67,6 @@ def __getattr__(self, x): class DefaultBranding: - """ Default branding. values are defined in init to help with i18n/l10n ordering. diff --git a/src/subscription_manager/repofile.py b/src/subscription_manager/repofile.py index cc98803493..1d81524578 100644 --- a/src/subscription_manager/repofile.py +++ b/src/subscription_manager/repofile.py @@ -286,7 +286,6 @@ def manage_repos_enabled() -> bool: class TidyWriter: - """ ini file reader that removes successive newlines, and adds a trailing newline to the end of a file. diff --git a/test-requirements.txt b/test-requirements.txt index 2dfb62d967..c350c806c3 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -7,7 +7,7 @@ # the version of black is specified also in the stylish.yml github workflow; # please update the version there in case it is bumped here -black==23.3.0 +black==24.3.0 flake8 pytest pytest-randomly