From ca60bc1e4582ae5ac629e20cf113521ea386966b Mon Sep 17 00:00:00 2001 From: actionless Date: Tue, 6 Aug 2024 11:22:24 +0200 Subject: [PATCH] style: apply `black` formatter --- packages/author/agents/demo_agent/aea-config.yaml | 4 ++-- .../author/services/demo_service/service.yaml | 2 +- packages/author/skills/demo_abci/behaviours.py | 15 +++++++++++++-- packages/author/skills/demo_abci/skill.yaml | 2 +- .../author/skills/demo_chained_abci/skill.yaml | 2 +- packages/packages.json | 8 ++++---- 6 files changed, 22 insertions(+), 11 deletions(-) diff --git a/packages/author/agents/demo_agent/aea-config.yaml b/packages/author/agents/demo_agent/aea-config.yaml index 14faa7e..0d6e608 100644 --- a/packages/author/agents/demo_agent/aea-config.yaml +++ b/packages/author/agents/demo_agent/aea-config.yaml @@ -31,8 +31,8 @@ protocols: skills: - valory/abstract_abci:0.1.0:bafybeihat4giyc4bz6zopvahcj4iw53356pbtwfn7p4d5yflwly2qhahum - valory/abstract_round_abci:0.1.0:bafybeih3enhagoql7kzpeyzzu2scpkif6y3ubakpralfnwxcvxexdyvy5i -- author/demo_abci:0.1.0:bafybeidcagaethamwaiityrxrqnpatkibycmlgesn5ntzgwtpmfbmeusku -- author/demo_chained_abci:0.1.0:bafybeifb5vfy2nwc7xg4fzeksotowzlojj5vezk5ei3ekouleso2crxxze +- author/demo_abci:0.1.0:bafybeianuwr7nn5aqawd5ef7kfn6vo46nj2lphnkvbmp5ucye62t2b4wyq +- author/demo_chained_abci:0.1.0:bafybeigtwrdkayiebbl7pafyustg4k5ycos47h77iddqq2tvp66fgllmee - valory/registration_abci:0.1.0:bafybeiek7zcsxbucjwzgqfftafhfrocvc7q4yxllh2q44jeemsjxg3rcfm - valory/reset_pause_abci:0.1.0:bafybeidw4mbx3os3hmv7ley7b3g3gja7ydpitr7mxbjpwzxin2mzyt5yam - valory/termination_abci:0.1.0:bafybeihq6qtbwt6i53ayqym63vhjexkcppy26gguzhhjqywfmiuqghvv44 diff --git a/packages/author/services/demo_service/service.yaml b/packages/author/services/demo_service/service.yaml index 6f610bf..362bbff 100644 --- a/packages/author/services/demo_service/service.yaml +++ b/packages/author/services/demo_service/service.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeicxq7czrb2v2mzpvytqc53eawd6kwe7vq2lh5kn63hhxrj3fqodne fingerprint_ignore_patterns: [] -agent: author/demo_agent:0.1.0:bafybeihkx6zfp56jzjxdloix3zllsorfjvs2jhfg3tmvlb5au4cs5bvvya +agent: author/demo_agent:0.1.0:bafybeigpsoi63tekuncxyhm53foxizfuuivlb66yk5k2llojyp2rayvspi number_of_agents: 1 deployment: agent: diff --git a/packages/author/skills/demo_abci/behaviours.py b/packages/author/skills/demo_abci/behaviours.py index afd2c72..e3d36e2 100644 --- a/packages/author/skills/demo_abci/behaviours.py +++ b/packages/author/skills/demo_abci/behaviours.py @@ -57,7 +57,16 @@ def local_state(self) -> SharedState: DICTIONARY = ( - "hello", "sun", "world", "space", "moon", "crypto", "sky", "ocean", "universe", "human" + "hello", + "sun", + "world", + "space", + "moon", + "crypto", + "sky", + "ocean", + "universe", + "human", ) @@ -72,7 +81,9 @@ def async_act(self) -> Generator: with self.context.benchmark_tool.measure(self.behaviour_id).local(): sender = self.context.agent_address # `nosec` because random is used not for cryptography here: - payload_content = " ".join(random.choice(DICTIONARY) for _ in range(2)) # nosec B311 + payload_content = " ".join( + random.choice(DICTIONARY) for _ in range(2) + ) # nosec B311 self.context.logger.info(payload_content) payload = DemoPayload(sender=sender, content=payload_content) diff --git a/packages/author/skills/demo_abci/skill.yaml b/packages/author/skills/demo_abci/skill.yaml index 400e0d9..ab55daa 100644 --- a/packages/author/skills/demo_abci/skill.yaml +++ b/packages/author/skills/demo_abci/skill.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeic7j5uouzatm6jcd5izcdgucm4yppu76s6iuczke6rzzhwbwbvgue - behaviours.py: bafybeicz673bfsrwfjnsiywlfjd2255quuo6mqrch3256zgcev4qbepagu + behaviours.py: bafybeicffyc7infbfwsdod5h7z2lll7stm42xpqqocbcwhd67enrqr36yy dialogues.py: bafybeifs775q3j2ipnpzn4pwcom47hhgyg7czqqy5gvjo5ov7ijjrqzeju fsm_specification.yaml: bafybeidfv2py64y2atghoe2kzgvtxtotk2srmfrvtg4tju4gdahqelfaau handlers.py: bafybeibyx7bjxfe2ffchmv33w4itxpa4mi5wtbtjzgxzh6knp7fwpvthzm diff --git a/packages/author/skills/demo_chained_abci/skill.yaml b/packages/author/skills/demo_chained_abci/skill.yaml index bb7b104..06f0146 100644 --- a/packages/author/skills/demo_chained_abci/skill.yaml +++ b/packages/author/skills/demo_chained_abci/skill.yaml @@ -22,7 +22,7 @@ skills: - valory/registration_abci:0.1.0:bafybeiek7zcsxbucjwzgqfftafhfrocvc7q4yxllh2q44jeemsjxg3rcfm - valory/reset_pause_abci:0.1.0:bafybeidw4mbx3os3hmv7ley7b3g3gja7ydpitr7mxbjpwzxin2mzyt5yam - valory/termination_abci:0.1.0:bafybeihq6qtbwt6i53ayqym63vhjexkcppy26gguzhhjqywfmiuqghvv44 -- author/demo_abci:0.1.0:bafybeidcagaethamwaiityrxrqnpatkibycmlgesn5ntzgwtpmfbmeusku +- author/demo_abci:0.1.0:bafybeianuwr7nn5aqawd5ef7kfn6vo46nj2lphnkvbmp5ucye62t2b4wyq - valory/transaction_settlement_abci:0.1.0:bafybeigtzlk4uakmd54rxnznorcrstsr52kta474lgrnvx5ovr546vj7sq behaviours: main: diff --git a/packages/packages.json b/packages/packages.json index f1e11b4..751b076 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -1,9 +1,9 @@ { "dev": { - "skill/author/demo_abci/0.1.0": "bafybeidcagaethamwaiityrxrqnpatkibycmlgesn5ntzgwtpmfbmeusku", - "skill/author/demo_chained_abci/0.1.0": "bafybeifb5vfy2nwc7xg4fzeksotowzlojj5vezk5ei3ekouleso2crxxze", - "agent/author/demo_agent/0.1.0": "bafybeihkx6zfp56jzjxdloix3zllsorfjvs2jhfg3tmvlb5au4cs5bvvya", - "service/author/demo_service/0.1.0": "bafybeif62elinxmknnp5hxjc72smech6z34eadxfp6b43vjsy4u62net5q" + "skill/author/demo_abci/0.1.0": "bafybeianuwr7nn5aqawd5ef7kfn6vo46nj2lphnkvbmp5ucye62t2b4wyq", + "skill/author/demo_chained_abci/0.1.0": "bafybeigtwrdkayiebbl7pafyustg4k5ycos47h77iddqq2tvp66fgllmee", + "agent/author/demo_agent/0.1.0": "bafybeigpsoi63tekuncxyhm53foxizfuuivlb66yk5k2llojyp2rayvspi", + "service/author/demo_service/0.1.0": "bafybeidovqow6pc4u7a7zsp44yic44x65cpjzp2trhy65fixedttea7dre" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",