Skip to content

Commit f001270

Browse files
chore(deps): bump the all group with 3 updates (#74)
* chore(deps): bump the all group with 3 updates Bumps the all group with 3 updates: [ruff](https://github.com/astral-sh/ruff), [sphinx-autodoc2](https://github.com/chrisjsewell/sphinx-autodoc2) and [poethepoet](https://github.com/nat-n/poethepoet). Updates `ruff` from 0.1.15 to 0.3.7 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@v0.1.15...v0.3.7) Updates `sphinx-autodoc2` from 0.4.2 to 0.5.0 - [Release notes](https://github.com/chrisjsewell/sphinx-autodoc2/releases) - [Commits](sphinx-extensions2/sphinx-autodoc2@v0.4.2...v0.5.0) Updates `poethepoet` from 0.19.0 to 0.25.1 - [Release notes](https://github.com/nat-n/poethepoet/releases) - [Commits](nat-n/poethepoet@v0.19.0...v0.25.1) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: sphinx-autodoc2 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: poethepoet dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] <[email protected]> * chore: addressing latest ruff version suggestions --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Altynbek Orumbayev <[email protected]>
1 parent 45a7721 commit f001270

File tree

5 files changed

+57
-78
lines changed

5 files changed

+57
-78
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: ruff
1616
name: ruff
1717
description: "Run 'ruff' for extremely fast Python linting"
18-
entry: poetry run ruff
18+
entry: poetry run ruff check
1919
language: system
2020
"types": [python]
2121
args: [--fix]

poetry.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ deprecated = "^1.2.14"
1414

1515
[tool.poetry.group.dev.dependencies]
1616
pytest = "^7.2.0"
17-
ruff = "^0.1.6"
17+
ruff = ">=0.1.6,<0.4.0"
1818
pip-audit = "^2.5.6"
1919
pytest-mock = "^3.11.1"
2020
mypy = "^1.5.1"
@@ -26,8 +26,8 @@ sphinx = "^6.1.3"
2626
myst-parser = "^1.0.0"
2727
sphinx-copybutton = "^0.5.1"
2828
sphinx-rtd-theme = "^1.2.0"
29-
sphinx-autodoc2 = "^0.4.2"
30-
poethepoet = "^0.19.0"
29+
sphinx-autodoc2 = ">=0.4.2,<0.6.0"
30+
poethepoet = ">=0.19,<0.26"
3131
beaker-pyteal = "^1.1.1"
3232
types-deprecated = "^1.2.9.2"
3333
pytest-httpx = "^0.21.3"
@@ -43,7 +43,7 @@ build-backend = "poetry.core.masonry.api"
4343

4444
[tool.ruff]
4545
line-length = 120
46-
select = [
46+
lint.select = [
4747
# all possible codes as of this ruff version are listed here,
4848
# ones we don't want/need are commented out to make it clear
4949
# which have been omitted on purpose vs which ones get added
@@ -93,7 +93,7 @@ select = [
9393
# "NPY", # NumPy-specific rules
9494
"RUF", # Ruff-specific rules
9595
]
96-
ignore = [
96+
lint.ignore = [
9797
"ANN101", # no type for self
9898
"ANN102", # no type for cls
9999
"RET505", # allow else after return
@@ -119,7 +119,7 @@ extend-exclude = [
119119
# Assume Python 3.10.
120120
target-version = "py310"
121121

122-
[tool.ruff.flake8-annotations]
122+
[tool.ruff.lint.flake8-annotations]
123123
allow-star-arg-any = true
124124
suppress-none-returning = true
125125

src/algokit_utils/application_client.py

Lines changed: 21 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def __init__(
9696
sender: str | None = None,
9797
suggested_params: transaction.SuggestedParams | None = None,
9898
template_values: au_deploy.TemplateValueMapping | None = None,
99-
):
100-
...
99+
): ...
101100

102101
@overload
103102
def __init__(
@@ -113,8 +112,7 @@ def __init__(
113112
suggested_params: transaction.SuggestedParams | None = None,
114113
template_values: au_deploy.TemplateValueMapping | None = None,
115114
app_name: str | None = None,
116-
):
117-
...
115+
): ...
118116

119117
def __init__( # noqa: PLR0913
120118
self,
@@ -403,26 +401,23 @@ def create(
403401
self,
404402
call_abi_method: Literal[False],
405403
transaction_parameters: CreateCallParameters | CreateCallParametersDict | None = ...,
406-
) -> TransactionResponse:
407-
...
404+
) -> TransactionResponse: ...
408405

409406
@overload
410407
def create(
411408
self,
412409
call_abi_method: ABIMethod | Literal[True],
413410
transaction_parameters: CreateCallParameters | CreateCallParametersDict | None = ...,
414411
**abi_kwargs: ABIArgType,
415-
) -> ABITransactionResponse:
416-
...
412+
) -> ABITransactionResponse: ...
417413

418414
@overload
419415
def create(
420416
self,
421417
call_abi_method: ABIMethod | bool | None = ...,
422418
transaction_parameters: CreateCallParameters | CreateCallParametersDict | None = ...,
423419
**abi_kwargs: ABIArgType,
424-
) -> TransactionResponse | ABITransactionResponse:
425-
...
420+
) -> TransactionResponse | ABITransactionResponse: ...
426421

427422
def create(
428423
self,
@@ -471,25 +466,22 @@ def update(
471466
call_abi_method: ABIMethod | Literal[True],
472467
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
473468
**abi_kwargs: ABIArgType,
474-
) -> ABITransactionResponse:
475-
...
469+
) -> ABITransactionResponse: ...
476470

477471
@overload
478472
def update(
479473
self,
480474
call_abi_method: Literal[False],
481475
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
482-
) -> TransactionResponse:
483-
...
476+
) -> TransactionResponse: ...
484477

485478
@overload
486479
def update(
487480
self,
488481
call_abi_method: ABIMethod | bool | None = ...,
489482
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
490483
**abi_kwargs: ABIArgType,
491-
) -> TransactionResponse | ABITransactionResponse:
492-
...
484+
) -> TransactionResponse | ABITransactionResponse: ...
493485

494486
def update(
495487
self,
@@ -532,25 +524,22 @@ def delete(
532524
call_abi_method: ABIMethod | Literal[True],
533525
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
534526
**abi_kwargs: ABIArgType,
535-
) -> ABITransactionResponse:
536-
...
527+
) -> ABITransactionResponse: ...
537528

538529
@overload
539530
def delete(
540531
self,
541532
call_abi_method: Literal[False],
542533
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
543-
) -> TransactionResponse:
544-
...
534+
) -> TransactionResponse: ...
545535

546536
@overload
547537
def delete(
548538
self,
549539
call_abi_method: ABIMethod | bool | None = ...,
550540
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
551541
**abi_kwargs: ABIArgType,
552-
) -> TransactionResponse | ABITransactionResponse:
553-
...
542+
) -> TransactionResponse | ABITransactionResponse: ...
554543

555544
def delete(
556545
self,
@@ -593,25 +582,22 @@ def call(
593582
call_abi_method: ABIMethod | Literal[True],
594583
transaction_parameters: OnCompleteCallParameters | OnCompleteCallParametersDict | None = ...,
595584
**abi_kwargs: ABIArgType,
596-
) -> ABITransactionResponse:
597-
...
585+
) -> ABITransactionResponse: ...
598586

599587
@overload
600588
def call(
601589
self,
602590
call_abi_method: Literal[False],
603591
transaction_parameters: OnCompleteCallParameters | OnCompleteCallParametersDict | None = ...,
604-
) -> TransactionResponse:
605-
...
592+
) -> TransactionResponse: ...
606593

607594
@overload
608595
def call(
609596
self,
610597
call_abi_method: ABIMethod | bool | None = ...,
611598
transaction_parameters: OnCompleteCallParameters | OnCompleteCallParametersDict | None = ...,
612599
**abi_kwargs: ABIArgType,
613-
) -> TransactionResponse | ABITransactionResponse:
614-
...
600+
) -> TransactionResponse | ABITransactionResponse: ...
615601

616602
def call(
617603
self,
@@ -667,25 +653,22 @@ def opt_in(
667653
call_abi_method: ABIMethod | Literal[True] = ...,
668654
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
669655
**abi_kwargs: ABIArgType,
670-
) -> ABITransactionResponse:
671-
...
656+
) -> ABITransactionResponse: ...
672657

673658
@overload
674659
def opt_in(
675660
self,
676661
call_abi_method: Literal[False] = ...,
677662
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
678-
) -> TransactionResponse:
679-
...
663+
) -> TransactionResponse: ...
680664

681665
@overload
682666
def opt_in(
683667
self,
684668
call_abi_method: ABIMethod | bool | None = ...,
685669
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
686670
**abi_kwargs: ABIArgType,
687-
) -> TransactionResponse | ABITransactionResponse:
688-
...
671+
) -> TransactionResponse | ABITransactionResponse: ...
689672

690673
def opt_in(
691674
self,
@@ -726,25 +709,22 @@ def close_out(
726709
call_abi_method: ABIMethod | Literal[True],
727710
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
728711
**abi_kwargs: ABIArgType,
729-
) -> ABITransactionResponse:
730-
...
712+
) -> ABITransactionResponse: ...
731713

732714
@overload
733715
def close_out(
734716
self,
735717
call_abi_method: Literal[False],
736718
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
737-
) -> TransactionResponse:
738-
...
719+
) -> TransactionResponse: ...
739720

740721
@overload
741722
def close_out(
742723
self,
743724
call_abi_method: ABIMethod | bool | None = ...,
744725
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
745726
**abi_kwargs: ABIArgType,
746-
) -> TransactionResponse | ABITransactionResponse:
747-
...
727+
) -> TransactionResponse | ABITransactionResponse: ...
748728

749729
def close_out(
750730
self,
@@ -1390,7 +1370,7 @@ def _parse_result(
13901370
)
13911371
continue
13921372

1393-
logs = tx_info["logs"] if "logs" in tx_info else []
1373+
logs = tx_info.get("logs", [])
13941374

13951375
# Look for the last returned value in the log
13961376
if not logs:

src/algokit_utils/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ class ABITransactionResponse(TransactionResponse, Generic[ReturnType]):
121121

122122

123123
class ABIReturnSubroutine(Protocol):
124-
def method_spec(self) -> Method:
125-
...
124+
def method_spec(self) -> Method: ...
126125

127126

128127
ABIMethod: TypeAlias = ABIReturnSubroutine | Method | str

0 commit comments

Comments
 (0)