Skip to content

Commit 6dcf2f3

Browse files
jamshalePatStLouis
andauthored
chore: Update ruff version in github action runner to project major version (#4093)
* chore: Update ruff version in github action runner to project major version Signed-off-by: jamshale <jamiehalebc@gmail.com> * chore: reformat failing files with new ruff version Signed-off-by: jamshale <jamiehalebc@gmail.com> * chore: reformat failing files with new ruff version Signed-off-by: jamshale <jamiehalebc@gmail.com> * chore: reformat failing files with new ruff version Signed-off-by: jamshale <jamiehalebc@gmail.com> --------- Signed-off-by: jamshale <jamiehalebc@gmail.com> Co-authored-by: Patrick St-Louis <43082425+PatStLouis@users.noreply.github.com>
1 parent 4677bec commit 6dcf2f3

File tree

3 files changed

+22
-27
lines changed

3 files changed

+22
-27
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- name: Ruff Format Check
2222
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
2323
with:
24-
version: 0.14.0
24+
version: 0.15.0
2525
args: "format --check"
2626
- name: Ruff Lint Check
2727
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
2828
with:
29-
version: 0.14.0
29+
version: 0.15.0
3030
args: "check"

acapy_agent/indy/credx/issuer_kanon.py

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,14 @@ async def create_and_store_credential_definition(
251251
key_proof,
252252
) = await asyncio.get_event_loop().run_in_executor(
253253
None,
254-
lambda origin=origin_did,
255-
sch=schema,
256-
sig=signature_type,
257-
tg=tag,
258-
sup=support_revocation: CredentialDefinition.create(
259-
strip_did_prefix(origin),
260-
sch,
261-
sig or DEFAULT_SIGNATURE_TYPE,
262-
tg or DEFAULT_CRED_DEF_TAG,
263-
support_revocation=sup,
254+
lambda origin=origin_did, sch=schema, sig=signature_type, tg=tag, sup=support_revocation: ( # noqa: E501
255+
CredentialDefinition.create(
256+
strip_did_prefix(origin),
257+
sch,
258+
sig or DEFAULT_SIGNATURE_TYPE,
259+
tg or DEFAULT_CRED_DEF_TAG,
260+
support_revocation=sup,
261+
)
264262
),
265263
)
266264
cred_def_id = cred_def.id
@@ -700,18 +698,15 @@ async def create_and_store_revocation_registry(
700698
_rev_reg_delta,
701699
) = await asyncio.get_event_loop().run_in_executor(
702700
None,
703-
lambda o=origin_did,
704-
cd=cred_def.raw_value,
705-
tg=tag,
706-
rdt=revoc_def_type,
707-
mx=max_cred_num,
708-
td=tails_base_path: RevocationRegistryDefinition.create(
709-
strip_did_prefix(o),
710-
cd,
711-
tg,
712-
rdt,
713-
mx,
714-
tails_dir_path=td,
701+
lambda o=origin_did, cd=cred_def.raw_value, tg=tag, rdt=revoc_def_type, mx=max_cred_num, td=tails_base_path: ( # noqa: E501
702+
RevocationRegistryDefinition.create(
703+
strip_did_prefix(o),
704+
cd,
705+
tg,
706+
rdt,
707+
mx,
708+
tails_dir_path=td,
709+
)
715710
),
716711
)
717712
except CredxError as err:

acapy_agent/wallet/tests/test_kanon_wallet_errors_and_endpoint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ def from_key_type(self, *_):
318318
monkeypatch.setattr(
319319
wallet.session,
320320
"inject",
321-
lambda cls: BadKeyTypes
322-
if cls is module.KeyTypes
323-
else wallet.session.context.inject(cls),
321+
lambda cls: (
322+
BadKeyTypes if cls is module.KeyTypes else wallet.session.context.inject(cls)
323+
),
324324
)
325325
monkeypatch.setattr(module, "ERR_UNKNOWN_KEY_TYPE", "Unknown key type %s")
326326
with pytest.raises(module.WalletError):

0 commit comments

Comments
 (0)