Skip to content

Commit

Permalink
chore(deps): bump the all group with 3 updates (#74)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
dependabot[bot] and aorumbayev authored Apr 17, 2024
1 parent 45a7721 commit f001270
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 78 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: ruff
name: ruff
description: "Run 'ruff' for extremely fast Python linting"
entry: poetry run ruff
entry: poetry run ruff check
language: system
"types": [python]
args: [--fix]
Expand Down
56 changes: 28 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ deprecated = "^1.2.14"

[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
ruff = "^0.1.6"
ruff = ">=0.1.6,<0.4.0"
pip-audit = "^2.5.6"
pytest-mock = "^3.11.1"
mypy = "^1.5.1"
Expand All @@ -26,8 +26,8 @@ sphinx = "^6.1.3"
myst-parser = "^1.0.0"
sphinx-copybutton = "^0.5.1"
sphinx-rtd-theme = "^1.2.0"
sphinx-autodoc2 = "^0.4.2"
poethepoet = "^0.19.0"
sphinx-autodoc2 = ">=0.4.2,<0.6.0"
poethepoet = ">=0.19,<0.26"
beaker-pyteal = "^1.1.1"
types-deprecated = "^1.2.9.2"
pytest-httpx = "^0.21.3"
Expand All @@ -43,7 +43,7 @@ build-backend = "poetry.core.masonry.api"

[tool.ruff]
line-length = 120
select = [
lint.select = [
# all possible codes as of this ruff version are listed here,
# ones we don't want/need are commented out to make it clear
# which have been omitted on purpose vs which ones get added
Expand Down Expand Up @@ -93,7 +93,7 @@ select = [
# "NPY", # NumPy-specific rules
"RUF", # Ruff-specific rules
]
ignore = [
lint.ignore = [
"ANN101", # no type for self
"ANN102", # no type for cls
"RET505", # allow else after return
Expand All @@ -119,7 +119,7 @@ extend-exclude = [
# Assume Python 3.10.
target-version = "py310"

[tool.ruff.flake8-annotations]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
suppress-none-returning = true

Expand Down
62 changes: 21 additions & 41 deletions src/algokit_utils/application_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def __init__(
sender: str | None = None,
suggested_params: transaction.SuggestedParams | None = None,
template_values: au_deploy.TemplateValueMapping | None = None,
):
...
): ...

@overload
def __init__(
Expand All @@ -113,8 +112,7 @@ def __init__(
suggested_params: transaction.SuggestedParams | None = None,
template_values: au_deploy.TemplateValueMapping | None = None,
app_name: str | None = None,
):
...
): ...

def __init__( # noqa: PLR0913
self,
Expand Down Expand Up @@ -403,26 +401,23 @@ def create(
self,
call_abi_method: Literal[False],
transaction_parameters: CreateCallParameters | CreateCallParametersDict | None = ...,
) -> TransactionResponse:
...
) -> TransactionResponse: ...

@overload
def create(
self,
call_abi_method: ABIMethod | Literal[True],
transaction_parameters: CreateCallParameters | CreateCallParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> ABITransactionResponse:
...
) -> ABITransactionResponse: ...

@overload
def create(
self,
call_abi_method: ABIMethod | bool | None = ...,
transaction_parameters: CreateCallParameters | CreateCallParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> TransactionResponse | ABITransactionResponse:
...
) -> TransactionResponse | ABITransactionResponse: ...

def create(
self,
Expand Down Expand Up @@ -471,25 +466,22 @@ def update(
call_abi_method: ABIMethod | Literal[True],
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> ABITransactionResponse:
...
) -> ABITransactionResponse: ...

@overload
def update(
self,
call_abi_method: Literal[False],
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
) -> TransactionResponse:
...
) -> TransactionResponse: ...

@overload
def update(
self,
call_abi_method: ABIMethod | bool | None = ...,
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> TransactionResponse | ABITransactionResponse:
...
) -> TransactionResponse | ABITransactionResponse: ...

def update(
self,
Expand Down Expand Up @@ -532,25 +524,22 @@ def delete(
call_abi_method: ABIMethod | Literal[True],
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> ABITransactionResponse:
...
) -> ABITransactionResponse: ...

@overload
def delete(
self,
call_abi_method: Literal[False],
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
) -> TransactionResponse:
...
) -> TransactionResponse: ...

@overload
def delete(
self,
call_abi_method: ABIMethod | bool | None = ...,
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> TransactionResponse | ABITransactionResponse:
...
) -> TransactionResponse | ABITransactionResponse: ...

def delete(
self,
Expand Down Expand Up @@ -593,25 +582,22 @@ def call(
call_abi_method: ABIMethod | Literal[True],
transaction_parameters: OnCompleteCallParameters | OnCompleteCallParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> ABITransactionResponse:
...
) -> ABITransactionResponse: ...

@overload
def call(
self,
call_abi_method: Literal[False],
transaction_parameters: OnCompleteCallParameters | OnCompleteCallParametersDict | None = ...,
) -> TransactionResponse:
...
) -> TransactionResponse: ...

@overload
def call(
self,
call_abi_method: ABIMethod | bool | None = ...,
transaction_parameters: OnCompleteCallParameters | OnCompleteCallParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> TransactionResponse | ABITransactionResponse:
...
) -> TransactionResponse | ABITransactionResponse: ...

def call(
self,
Expand Down Expand Up @@ -667,25 +653,22 @@ def opt_in(
call_abi_method: ABIMethod | Literal[True] = ...,
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
**abi_kwargs: ABIArgType,
) -> ABITransactionResponse:
...
) -> ABITransactionResponse: ...

@overload
def opt_in(
self,
call_abi_method: Literal[False] = ...,
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
) -> TransactionResponse:
...
) -> TransactionResponse: ...

@overload
def opt_in(
self,
call_abi_method: ABIMethod | bool | None = ...,
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> TransactionResponse | ABITransactionResponse:
...
) -> TransactionResponse | ABITransactionResponse: ...

def opt_in(
self,
Expand Down Expand Up @@ -726,25 +709,22 @@ def close_out(
call_abi_method: ABIMethod | Literal[True],
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> ABITransactionResponse:
...
) -> ABITransactionResponse: ...

@overload
def close_out(
self,
call_abi_method: Literal[False],
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
) -> TransactionResponse:
...
) -> TransactionResponse: ...

@overload
def close_out(
self,
call_abi_method: ABIMethod | bool | None = ...,
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
**abi_kwargs: ABIArgType,
) -> TransactionResponse | ABITransactionResponse:
...
) -> TransactionResponse | ABITransactionResponse: ...

def close_out(
self,
Expand Down Expand Up @@ -1390,7 +1370,7 @@ def _parse_result(
)
continue

logs = tx_info["logs"] if "logs" in tx_info else []
logs = tx_info.get("logs", [])

# Look for the last returned value in the log
if not logs:
Expand Down
3 changes: 1 addition & 2 deletions src/algokit_utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ class ABITransactionResponse(TransactionResponse, Generic[ReturnType]):


class ABIReturnSubroutine(Protocol):
def method_spec(self) -> Method:
...
def method_spec(self) -> Method: ...


ABIMethod: TypeAlias = ABIReturnSubroutine | Method | str
Expand Down

1 comment on commit f001270

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/algokit_utils
   _debugging.py140795%20, 41, 76, 80, 89, 129, 157
   _ensure_funded.py69199%99
   _transfer.py62395%13, 76–77
   account.py851385%14–17, 61–65, 96, 109, 136, 139, 183
   application_client.py5287785%58–59, 166, 171, 200, 312, 317–318, 320, 322, 787, 802, 820–823, 913, 953, 965, 978, 1020, 1080–1086, 1090–1095, 1097, 1133, 1140, 1253, 1283, 1297, 1335–1337, 1339, 1349–1406, 1417–1422, 1442–1445
   application_specification.py971189%92, 94, 193–202, 206
   asset.py79594%9, 27–30
   common.py13192%13
   config.py511865%38–39, 50, 55, 60, 64–69, 100–109
   deploy.py4552395%30–33, 168, 172–173, 190, 246, 402, 413–421, 438–441, 451, 459, 652–653, 677
   dispenser_api.py821285%112–113, 117–120, 155–157, 176–178
   logic_error.py38295%6, 29
   models.py125695%45, 50–52, 61–62
   network_clients.py66395%89–90, 121
TOTAL190418290% 

Tests Skipped Failures Errors Time
195 0 💤 0 ❌ 0 🔥 2m 25s ⏱️

Please sign in to comment.