Skip to content

Commit aea6633

Browse files
authored
⬆️ Upgrade dependencies (#161)
* ⬆️ Upgrade `black` to latest * ⬆️ Upgrade `pytest` to latest * ⬆️ Upgrade `autoflake` to latest * ⬆️ Upgrade `pydantic` to latest * ⬆️ Upgrade `urllib3` to latest * ⬆️ Upgrade `typing-extensions` to latest * 🎨 apply newest `black` formatting * 🎨 fix missing import * 🎨 fix typos * version bump * 🙈 un-ignore vscode settings * 🔧 Add vscode/settings.json, with cSpell acceptable word dictionary * ⬆️ Upgrade `anyio` to latest * 👷 Loosen requirement restrictions * 🎨 fix markdown warnings * 👷 add `--upgrade` flag to pip install * 📌 pin aiohttp to >=3.9.2 for vulnerability fix * 👷 add `--skip-existing` flag to twine upload
1 parent d5d22a6 commit aea6633

File tree

153 files changed

+1256
-899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+1256
-899
lines changed

.github/workflows/python-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip
22-
pip install -r requirements.txt -r requirements.dev.txt
22+
pip install -r requirements.txt -r requirements.dev.txt --upgrade
2323
- name: Run tests with pytest
2424
run: pytest
2525

@@ -37,7 +37,7 @@ jobs:
3737
python -m pip install --upgrade pip
3838
pip install \
3939
isort~=5.13.2 \
40-
black~=23.12.1
40+
black~=24.3.0
4141
- name: Check import style with isort
4242
run: |
4343
isort . --check --profile black --diff

.github/workflows/python-test-publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install -r requirements.txt -r requirements.dev.txt
24+
pip install -r requirements.txt -r requirements.dev.txt --upgrade
2525
- name: Run tests with pytest
2626
run: pytest
2727

@@ -39,7 +39,7 @@ jobs:
3939
python -m pip install --upgrade pip
4040
pip install \
4141
isort~=5.13.2 \
42-
black~=23.12.1
42+
black~=24.3.0
4343
- name: Check import style with isort
4444
run: |
4545
isort . --check --profile black --diff
@@ -75,4 +75,4 @@ jobs:
7575
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
7676
run: |
7777
python setup.py sdist bdist_wheel
78-
twine upload --repository testpypi dist/*
78+
twine upload --repository testpypi dist/* --skip-existing

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ build
77
.venv
88
.pytest_cache/*
99
__pycache__/
10-
.vscode/
1110
.coverage
1211
env
13-
generated
12+
generated

.vscode/settings.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"cSpell.words": [
3+
"acapy",
4+
"Accum",
5+
"aiohttp",
6+
"askar",
7+
"Basicmessage",
8+
"cafile",
9+
"Camenisch",
10+
"canonicalized",
11+
"cloudcontroller",
12+
"credentialsattach",
13+
"Creds",
14+
"crid",
15+
"dateutil",
16+
"didexchange",
17+
"DIDX",
18+
"docattach",
19+
"errormsg",
20+
"filtersattach",
21+
"htilde",
22+
"invi",
23+
"JSESSIONID",
24+
"Jsonld",
25+
"Keylist",
26+
"keypair",
27+
"klass",
28+
"levelname",
29+
"Lysyanskaya",
30+
"Mand",
31+
"Multitenancy",
32+
"offersattach",
33+
"oneof",
34+
"presentationsattach",
35+
"proposalsattach",
36+
"pydantic",
37+
"pyversion",
38+
"rctxt",
39+
"Regs",
40+
"requestsattach",
41+
"Revoc",
42+
"rrid",
43+
"SDJWS",
44+
"subwallet",
45+
"Trustping",
46+
"Verkey"
47+
]
48+
}

aries_cloudcontroller/models/action_menu_fetch_result.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self:
8383

8484
_obj = cls.model_validate(
8585
{
86-
"result": Menu.from_dict(obj.get("result"))
87-
if obj.get("result") is not None
88-
else None
86+
"result": (
87+
Menu.from_dict(obj.get("result"))
88+
if obj.get("result") is not None
89+
else None
90+
)
8991
}
9092
)
9193
return _obj

aries_cloudcontroller/models/attach_decorator.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ def from_dict(cls, obj: Dict) -> Self:
127127
{
128128
"@id": obj.get("@id"),
129129
"byte_count": obj.get("byte_count"),
130-
"data": AttachDecoratorData.from_dict(obj.get("data"))
131-
if obj.get("data") is not None
132-
else None,
130+
"data": (
131+
AttachDecoratorData.from_dict(obj.get("data"))
132+
if obj.get("data") is not None
133+
else None
134+
),
133135
"description": obj.get("description"),
134136
"filename": obj.get("filename"),
135137
"lastmod_time": obj.get("lastmod_time"),

aries_cloudcontroller/models/attach_decorator_data.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,11 @@ def from_dict(cls, obj: Dict) -> Self:
125125
{
126126
"base64": obj.get("base64"),
127127
"json": obj.get("json"),
128-
"jws": AttachDecoratorDataJWS.from_dict(obj.get("jws"))
129-
if obj.get("jws") is not None
130-
else None,
128+
"jws": (
129+
AttachDecoratorDataJWS.from_dict(obj.get("jws"))
130+
if obj.get("jws") is not None
131+
else None
132+
),
131133
"links": obj.get("links"),
132134
"sha256": obj.get("sha256"),
133135
}

aries_cloudcontroller/models/attach_decorator_data1_jws.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ def from_dict(cls, obj: Dict) -> Self:
108108

109109
_obj = cls.model_validate(
110110
{
111-
"header": AttachDecoratorDataJWSHeader.from_dict(obj.get("header"))
112-
if obj.get("header") is not None
113-
else None,
111+
"header": (
112+
AttachDecoratorDataJWSHeader.from_dict(obj.get("header"))
113+
if obj.get("header") is not None
114+
else None
115+
),
114116
"protected": obj.get("protected"),
115117
"signature": obj.get("signature"),
116118
}

aries_cloudcontroller/models/attach_decorator_data_jws.py

+13-9
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,21 @@ def from_dict(cls, obj: Dict) -> Self:
131131

132132
_obj = cls.model_validate(
133133
{
134-
"header": AttachDecoratorDataJWSHeader.from_dict(obj.get("header"))
135-
if obj.get("header") is not None
136-
else None,
134+
"header": (
135+
AttachDecoratorDataJWSHeader.from_dict(obj.get("header"))
136+
if obj.get("header") is not None
137+
else None
138+
),
137139
"protected": obj.get("protected"),
138140
"signature": obj.get("signature"),
139-
"signatures": [
140-
AttachDecoratorData1JWS.from_dict(_item)
141-
for _item in obj.get("signatures")
142-
]
143-
if obj.get("signatures") is not None
144-
else None,
141+
"signatures": (
142+
[
143+
AttachDecoratorData1JWS.from_dict(_item)
144+
for _item in obj.get("signatures")
145+
]
146+
if obj.get("signatures") is not None
147+
else None
148+
),
145149
}
146150
)
147151
return _obj

aries_cloudcontroller/models/connection_list.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,11 @@ def from_dict(cls, obj: Dict) -> Self:
8989

9090
_obj = cls.model_validate(
9191
{
92-
"results": [ConnRecord.from_dict(_item) for _item in obj.get("results")]
93-
if obj.get("results") is not None
94-
else None
92+
"results": (
93+
[ConnRecord.from_dict(_item) for _item in obj.get("results")]
94+
if obj.get("results") is not None
95+
else None
96+
)
9597
}
9698
)
9799
return _obj

aries_cloudcontroller/models/connection_static_result.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ def from_dict(cls, obj: Dict) -> Self:
166166
"my_did": obj.get("my_did"),
167167
"my_endpoint": obj.get("my_endpoint"),
168168
"my_verkey": obj.get("my_verkey"),
169-
"record": ConnRecord.from_dict(obj.get("record"))
170-
if obj.get("record") is not None
171-
else None,
169+
"record": (
170+
ConnRecord.from_dict(obj.get("record"))
171+
if obj.get("record") is not None
172+
else None
173+
),
172174
"their_did": obj.get("their_did"),
173175
"their_verkey": obj.get("their_verkey"),
174176
}

aries_cloudcontroller/models/constraints.py

+10-8
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,16 @@ def from_dict(cls, obj: Dict) -> Self:
159159

160160
_obj = cls.model_validate(
161161
{
162-
"fields": [DIFField.from_dict(_item) for _item in obj.get("fields")]
163-
if obj.get("fields") is not None
164-
else None,
165-
"is_holder": [
166-
DIFHolder.from_dict(_item) for _item in obj.get("is_holder")
167-
]
168-
if obj.get("is_holder") is not None
169-
else None,
162+
"fields": (
163+
[DIFField.from_dict(_item) for _item in obj.get("fields")]
164+
if obj.get("fields") is not None
165+
else None
166+
),
167+
"is_holder": (
168+
[DIFHolder.from_dict(_item) for _item in obj.get("is_holder")]
169+
if obj.get("is_holder") is not None
170+
else None
171+
),
170172
"limit_disclosure": obj.get("limit_disclosure"),
171173
"status_active": obj.get("status_active"),
172174
"status_revoked": obj.get("status_revoked"),

aries_cloudcontroller/models/create_wallet_token_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CreateWalletTokenRequest(BaseModel):
3535

3636
wallet_key: Optional[StrictStr] = Field(
3737
default=None,
38-
description="Master key used for key derivation. Only required for unamanged wallets.",
38+
description="Master key used for key derivation. Only required for unmanaged wallets.",
3939
)
4040
__properties: ClassVar[List[str]] = ["wallet_key"]
4141

aries_cloudcontroller/models/cred_def_value.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,16 @@ def from_dict(cls, obj: Dict) -> Self:
9090

9191
_obj = cls.model_validate(
9292
{
93-
"primary": CredDefValuePrimary.from_dict(obj.get("primary"))
94-
if obj.get("primary") is not None
95-
else None,
96-
"revocation": CredDefValueRevocation.from_dict(obj.get("revocation"))
97-
if obj.get("revocation") is not None
98-
else None,
93+
"primary": (
94+
CredDefValuePrimary.from_dict(obj.get("primary"))
95+
if obj.get("primary") is not None
96+
else None
97+
),
98+
"revocation": (
99+
CredDefValueRevocation.from_dict(obj.get("revocation"))
100+
if obj.get("revocation") is not None
101+
else None
102+
),
99103
}
100104
)
101105
return _obj

aries_cloudcontroller/models/cred_def_value_primary.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ def from_dict(cls, obj: Dict) -> Self:
130130
_obj = cls.model_validate(
131131
{
132132
"n": obj.get("n"),
133-
"r": Generated.from_dict(obj.get("r"))
134-
if obj.get("r") is not None
135-
else None,
133+
"r": (
134+
Generated.from_dict(obj.get("r"))
135+
if obj.get("r") is not None
136+
else None
137+
),
136138
"rctxt": obj.get("rctxt"),
137139
"s": obj.get("s"),
138140
"z": obj.get("z"),

aries_cloudcontroller/models/cred_info_list.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def from_dict(cls, obj: Dict) -> Self:
8787

8888
_obj = cls.model_validate(
8989
{
90-
"results": [
91-
IndyCredInfo.from_dict(_item) for _item in obj.get("results")
92-
]
93-
if obj.get("results") is not None
94-
else None
90+
"results": (
91+
[IndyCredInfo.from_dict(_item) for _item in obj.get("results")]
92+
if obj.get("results") is not None
93+
else None
94+
)
9595
}
9696
)
9797
return _obj

aries_cloudcontroller/models/cred_rev_record_details_result.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ def from_dict(cls, obj: Dict) -> Self:
8787

8888
_obj = cls.model_validate(
8989
{
90-
"results": [
91-
IssuerCredRevRecord.from_dict(_item) for _item in obj.get("results")
92-
]
93-
if obj.get("results") is not None
94-
else None
90+
"results": (
91+
[
92+
IssuerCredRevRecord.from_dict(_item)
93+
for _item in obj.get("results")
94+
]
95+
if obj.get("results") is not None
96+
else None
97+
)
9598
}
9699
)
97100
return _obj

aries_cloudcontroller/models/cred_rev_record_result.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ def from_dict(cls, obj: Dict) -> Self:
8383

8484
_obj = cls.model_validate(
8585
{
86-
"result": IssuerCredRevRecord.from_dict(obj.get("result"))
87-
if obj.get("result") is not None
88-
else None
86+
"result": (
87+
IssuerCredRevRecord.from_dict(obj.get("result"))
88+
if obj.get("result") is not None
89+
else None
90+
)
8991
}
9092
)
9193
return _obj

aries_cloudcontroller/models/credential.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@ def from_dict(cls, obj: Dict) -> Self:
154154
"id": obj.get("id"),
155155
"issuanceDate": obj.get("issuanceDate"),
156156
"issuer": obj.get("issuer"),
157-
"proof": LinkedDataProof.from_dict(obj.get("proof"))
158-
if obj.get("proof") is not None
159-
else None,
157+
"proof": (
158+
LinkedDataProof.from_dict(obj.get("proof"))
159+
if obj.get("proof") is not None
160+
else None
161+
),
160162
"type": obj.get("type"),
161163
}
162164
)

aries_cloudcontroller/models/credential_definition.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,11 @@ def from_dict(cls, obj: Dict) -> Self:
138138
"schemaId": obj.get("schemaId"),
139139
"tag": obj.get("tag"),
140140
"type": obj.get("type"),
141-
"value": CredDefValue.from_dict(obj.get("value"))
142-
if obj.get("value") is not None
143-
else None,
141+
"value": (
142+
CredDefValue.from_dict(obj.get("value"))
143+
if obj.get("value") is not None
144+
else None
145+
),
144146
"ver": obj.get("ver"),
145147
}
146148
)

aries_cloudcontroller/models/credential_definition_get_result.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ def from_dict(cls, obj: Dict) -> Self:
8383

8484
_obj = cls.model_validate(
8585
{
86-
"credential_definition": CredentialDefinition.from_dict(
87-
obj.get("credential_definition")
86+
"credential_definition": (
87+
CredentialDefinition.from_dict(obj.get("credential_definition"))
88+
if obj.get("credential_definition") is not None
89+
else None
8890
)
89-
if obj.get("credential_definition") is not None
90-
else None
9191
}
9292
)
9393
return _obj

0 commit comments

Comments
 (0)