Skip to content

Commit

Permalink
⬆️ Update black requirement from ~=23.12.0 to ~=24.1.0 (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jan 29, 2024
1 parent 27dda3f commit 995590c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python -m pip install --upgrade pip
pip install \
isort~=5.12.0 \
black~=23.10.1
black~=24.1.0
- name: Check import style with isort
run: isort . --check --profile black --diff
Expand Down
4 changes: 2 additions & 2 deletions .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.0
hooks:
- id: black
stages: [push]
Expand All @@ -11,7 +11,7 @@ repos:
hooks:
- id: blacken-docs
stages: [push]
additional_dependencies: [black==23.10.1]
additional_dependencies: [black==24.1.0]
language_version: python3
files: '\.(rst|md|markdown|py|tex)$'

Expand Down
8 changes: 5 additions & 3 deletions app/routes/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,11 @@ async def create_credential_definition(
await publish_revocation_registry_on_ledger(
controller=aries_controller,
revocation_registry_id=revoc_reg_creation_result.revoc_reg_id,
connection_id=endorser_connection.results[0].connection_id
if has_connections
else None,
connection_id=(
endorser_connection.results[0].connection_id
if has_connections
else None
),
create_transaction_for_endorser=has_connections,
)
if has_connections:
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
anyio>=3.7.1
assertpy==1.1
beautifulsoup4~=4.12.2
black~=23.12.0
black~=24.1.0
httpx~=0.26.0
isort~=5.13.2
lxml~=5.1.0
Expand Down
22 changes: 13 additions & 9 deletions shared/models/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ def presentation_record_to_model(
connection_id=record.connection_id,
created_at=record.created_at,
error_msg=record.error_msg,
parent_thread_id=record.presentation_request_dict.id
if record.presentation_request_dict
else None,
parent_thread_id=(
record.presentation_request_dict.id
if record.presentation_request_dict
else None
),
presentation=record.presentation,
presentation_request=record.presentation_request,
proof_id="v1-" + str(record.presentation_exchange_id),
Expand Down Expand Up @@ -192,19 +194,21 @@ def credential_record_to_model_v2(record: V20CredExRecord) -> CredentialExchange
created_at=record.created_at,
credential_definition_id=credential_definition_id,
credential_id=f"v2-{record.cred_ex_id}",
did=record.by_format.cred_offer["ld_proof"]["credential"]["issuer"]
if record.by_format and "ld_proof" in record.by_format.cred_offer
else None,
did=(
record.by_format.cred_offer["ld_proof"]["credential"]["issuer"]
if record.by_format and "ld_proof" in record.by_format.cred_offer
else None
),
error_msg=record.error_msg,
protocol_version=IssueCredentialProtocolVersion.v2,
role=record.role,
schema_id=schema_id,
state=record.state,
thread_id=record.thread_id,
updated_at=record.updated_at,
type=list(record.by_format.cred_offer.keys())[0]
if record.by_format
else "indy",
type=(
list(record.by_format.cred_offer.keys())[0] if record.by_format else "indy"
),
)


Expand Down
1 change: 1 addition & 0 deletions webhooks/clients.example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Example ws client connecting to all topics for acapy
"""

import asyncio
import os
import sys
Expand Down

0 comments on commit 995590c

Please sign in to comment.