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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 48 additions & 0 deletions
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

Lines changed: 5 additions & 3 deletions
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

Lines changed: 5 additions & 3 deletions
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

Lines changed: 5 additions & 3 deletions
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

Lines changed: 5 additions & 3 deletions
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

Lines changed: 13 additions & 9 deletions
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

Lines changed: 5 additions & 3 deletions
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

0 commit comments

Comments
 (0)