Skip to content

Commit

Permalink
Reformat with black
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot committed Apr 7, 2024
1 parent d323320 commit eb8208e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .ci/scripts/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
But some pulp paths start with curly brackets e.g. {artifact_href}
This script modifies drf-spectacular schema validation to accept slashes and curly brackets.
"""

import json
from drf_spectacular.validation import JSON_SCHEMA_SPEC_PATH

Expand Down
1 change: 1 addition & 0 deletions pulp_container/app/registry_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
. _Plugin Writer's Guide:
http://docs.pulpproject.org/plugins/plugin-writer/index.html
"""

import json
import logging
import hashlib
Expand Down
8 changes: 5 additions & 3 deletions pulp_container/app/tasks/sync_stages.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,11 @@ def create_manifest(self, list_dc, manifest_data):
)
manifest = Manifest(
digest=manifest_data["digest"],
schema_version=2
if manifest_data["mediaType"] in (MEDIA_TYPE.MANIFEST_V2, MEDIA_TYPE.MANIFEST_OCI)
else 1,
schema_version=(
2
if manifest_data["mediaType"] in (MEDIA_TYPE.MANIFEST_V2, MEDIA_TYPE.MANIFEST_OCI)
else 1
),
media_type=manifest_data["mediaType"],
)
platform = {}
Expand Down
1 change: 1 addition & 0 deletions pulp_container/app/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
. _Plugin Writer's Guide:
http://docs.pulpproject.org/plugins/plugin-writer/index.html
"""

import logging

from gettext import gettext as _
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
NOTE: assumes ALLOWED_EXPORT_PATHS setting contains "/tmp" - all tests will fail if this is not
the case.
"""

import unittest
from pulp_smash.utils import uuid4
from pulp_smash.pulp3.bindings import (
Expand Down

0 comments on commit eb8208e

Please sign in to comment.