Skip to content

Commit

Permalink
Update Black version in pre-commit config (#300) (#301)
Browse files Browse the repository at this point in the history
The Black version in pre-commit config is out of date making linting
fail when using a recent version.
  • Loading branch information
mcantelon authored Mar 22, 2024
1 parent f3313fd commit fcc9d26
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
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/ambv/black
rev: 18.9b0
rev: 24.3.0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down
14 changes: 8 additions & 6 deletions AIPscan/Aggregator/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,14 @@ def workflow_coordinator(
fetch_job_id, all_packages, total_packages_count
)

summary = "aips: '{}'; sips: '{}'; dips: '{}'; deleted: '{}'; replicated: '{}'".format(
obj.total_aips,
obj.total_sips,
obj.total_dips,
obj.total_deleted_aips,
obj.total_replicas,
summary = (
"aips: '{}'; sips: '{}'; dips: '{}'; deleted: '{}'; replicated: '{}'".format(
obj.total_aips,
obj.total_sips,
obj.total_dips,
obj.total_deleted_aips,
obj.total_replicas,
)
)
logger.info("%s", summary)

Expand Down
6 changes: 3 additions & 3 deletions AIPscan/Data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ def derivative_overview(storage_service_id, storage_location_id=None):
continue

file_derivative_pair = {}
file_derivative_pair[
fields.FIELD_DERIVATIVE_UUID
] = preservation_derivative.uuid
file_derivative_pair[fields.FIELD_DERIVATIVE_UUID] = (
preservation_derivative.uuid
)
file_derivative_pair[fields.FIELD_ORIGINAL_UUID] = original_file.uuid
original_format_version = original_file.format_version
if original_format_version is None:
Expand Down

0 comments on commit fcc9d26

Please sign in to comment.