Skip to content

Commit

Permalink
Update black to 24.3.0
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg committed Apr 3, 2024
1 parent b820cc2 commit 57675c5
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: "Lint plugin_template"
working-directory: "plugin_template"
run: |
pip3 install black==23.12.1 flake8
pip3 install black==24.3.0 flake8
black --version
black --check --diff plugin-template utils.py
flake8 plugin-template utils.py
Expand Down
4 changes: 2 additions & 2 deletions scripts/get_template_config_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

# Parse the command-line argument
parser = argparse.ArgumentParser()
parser.add_argument('value_name', help='Name of the value to extract')
parser.add_argument("value_name", help="Name of the value to extract")
args = parser.parse_args()

# Read the YAML file
with open('template_config.yml') as file:
with open("template_config.yml") as file:
data = yaml.safe_load(file)

# Extract the value based on the provided name
Expand Down
1 change: 1 addition & 0 deletions templates/bootstrap/plugin_name/app/serializers.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Check `Plugin Writer's Guide`_ for more details.
.. _Plugin Writer's Guide:
https://docs.pulpproject.org/pulpcore/plugins/plugin-writer/index.html
"""

from gettext import gettext as _

from rest_framework import serializers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests that perform actions over content unit."""

import unittest

from pulp_smash.pulp3.utils import delete_orphans
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests that CRUD {{ plugin_app_label }} remotes."""

from random import choice
import unittest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests that verify download of content served by Pulp."""

import hashlib
import unittest
from random import choice
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for Pulp`s download policies."""

import unittest

from pulp_smash.pulp3.bindings import monitor_task
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests that publish {{ plugin_app_label }} plugin repositories."""

import unittest
from random import choice

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests that sync {{ plugin_app_label }} plugin repositories."""

import unittest

from pulp_smash import config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for Pulp {{ plugin_app_label | camel }} plugin tests."""

from urllib.parse import urljoin

from pulp_smash.constants import PULP_FIXTURES_BASE_URL
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for tests for the {{ plugin_app_label }} plugin."""

from functools import partial
import requests
from unittest import SkipTest
Expand Down
2 changes: 1 addition & 1 deletion templates/github/lint_requirements.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# python packages handy for developers, but not required by pulp
{% if black -%}
black==23.12.1
black==24.3.0
{% endif -%}
check-manifest
flake8
Expand Down

0 comments on commit 57675c5

Please sign in to comment.