Skip to content

Commit 540adbe

Browse files
chore(deps): bump the all group across 1 directory with 9 updates (#654)
* chore(deps): bump the all group across 1 directory with 9 updates Bumps the all group with 9 updates in the / directory: | Package | From | To | | --- | --- | --- | | [click](https://github.com/pallets/click) | `8.1.8` | `8.2.1` | | [textual](https://github.com/Textualize/textual) | `3.2.0` | `3.4.0` | | [pyinstaller](https://github.com/pyinstaller/pyinstaller) | `6.13.0` | `6.14.1` | | [pytest](https://github.com/pytest-dev/pytest) | `8.3.5` | `8.4.0` | | [ruff](https://github.com/astral-sh/ruff) | `0.4.10` | `0.11.13` | | [pytest-mock](https://github.com/pytest-dev/pytest-mock) | `3.14.0` | `3.14.1` | | [mypy](https://github.com/python/mypy) | `1.15.0` | `1.16.1` | | [poethepoet](https://github.com/nat-n/poethepoet) | `0.26.1` | `0.35.0` | | [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) | `3.6.1` | `3.7.0` | Updates `click` from 8.1.8 to 8.2.1 - [Release notes](https://github.com/pallets/click/releases) - [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst) - [Commits](pallets/click@8.1.8...8.2.1) Updates `textual` from 3.2.0 to 3.4.0 - [Release notes](https://github.com/Textualize/textual/releases) - [Changelog](https://github.com/Textualize/textual/blob/main/CHANGELOG.md) - [Commits](Textualize/textual@v3.2.0...v3.4.0) Updates `pyinstaller` from 6.13.0 to 6.14.1 - [Release notes](https://github.com/pyinstaller/pyinstaller/releases) - [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst) - [Commits](pyinstaller/pyinstaller@v6.13.0...v6.14.1) Updates `pytest` from 8.3.5 to 8.4.0 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.3.5...8.4.0) Updates `ruff` from 0.4.10 to 0.11.13 - [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.4.10...0.11.13) Updates `pytest-mock` from 3.14.0 to 3.14.1 - [Release notes](https://github.com/pytest-dev/pytest-mock/releases) - [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest-mock@v3.14.0...v3.14.1) Updates `mypy` from 1.15.0 to 1.16.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v1.15.0...v1.16.1) Updates `poethepoet` from 0.26.1 to 0.35.0 - [Release notes](https://github.com/nat-n/poethepoet/releases) - [Commits](nat-n/poethepoet@v0.26.1...v0.35.0) Updates `pytest-xdist` from 3.6.1 to 3.7.0 - [Release notes](https://github.com/pytest-dev/pytest-xdist/releases) - [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-xdist@v3.6.1...v3.7.0) --- updated-dependencies: - dependency-name: click dependency-version: 8.2.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: textual dependency-version: 3.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: pyinstaller dependency-version: 6.14.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: pytest dependency-version: 8.4.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: ruff dependency-version: 0.11.13 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: pytest-mock dependency-version: 3.14.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: mypy dependency-version: 1.16.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: poethepoet dependency-version: 0.35.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: pytest-xdist dependency-version: 3.7.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] <[email protected]> * chore: addressing changes cause by dependency bumps * chore: bump urllib3 --------- 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 ceed902 commit 540adbe

Some content is hidden

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

51 files changed

+224
-225
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readme = "README.md"
88

99
[tool.poetry.dependencies]
1010
python = ">=3.10,<3.14"
11-
click = "^8.1.3"
11+
click = "8.1.8" # TODO: 8.2.0 upgrade requires refinements in click_invoker.py due to breaking changes
1212
httpx = ">=0.23.1,<=0.28.1"
1313
copier = "9.7.1"
1414
questionary = "^1.10.0"
@@ -46,7 +46,7 @@ pre-commit = ">=2.20,<4.0"
4646
sphinx = "^6.0.0"
4747
sphinx-click = "^4.4.0"
4848
sphinxnotes-markdown-builder = "^0.5.6"
49-
poethepoet = ">=0.17.1,<0.35.0"
49+
poethepoet = ">=0.17.1,<0.36.0"
5050
gfm-toc = "^0.0.7"
5151
pytest-xdist = "^3.4.0"
5252
pytest-sugar = "^1.0.0"
@@ -121,8 +121,6 @@ lint.select = [
121121
"RUF", # Ruff-specific rules
122122
]
123123
lint.ignore = [
124-
"ANN101", # no type for self
125-
"ANN102", # no type for cls
126124
"RET505", # allow else after return
127125
"SIM108", # allow if-else in place of ternary
128126
# To avoid conflict with ruff formatter. More details on https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

src/algokit/cli/dispenser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class DispenserAssetName(enum.IntEnum):
5454

5555
def _handle_ci_token(output_mode: str, output_filename: str, token_data: dict) -> None:
5656
if output_mode == OutputMode.STDOUT.value:
57-
click.echo(f'\n{DISPENSER_ACCESS_TOKEN_KEY} (valid for 30 days):\n\n{token_data["access_token"]}\n')
57+
click.echo(f"\n{DISPENSER_ACCESS_TOKEN_KEY} (valid for 30 days):\n\n{token_data['access_token']}\n")
5858
logger.warning(
5959
"Your CI access token has been printed to stdout.\n"
6060
"Please ensure you keep this token safe!\n"

src/algokit/cli/localnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@click.group("localnet", short_help="Manage the AlgoKit LocalNet.")
2929
@click.pass_context
3030
def localnet_group(ctx: click.Context) -> None:
31-
if ctx.invoked_subcommand and "codespace" in ctx.invoked_subcommand or not ctx.invoked_subcommand:
31+
if (ctx.invoked_subcommand and "codespace" in ctx.invoked_subcommand) or not ctx.invoked_subcommand:
3232
return
3333

3434
try:
@@ -81,7 +81,7 @@ def localnet_group(ctx: click.Context) -> None:
8181
required=False,
8282
default=False,
8383
type=click.BOOL,
84-
help=("Skip confirmation prompts. " "Defaults to 'yes' to all prompts."),
84+
help=("Skip confirmation prompts. Defaults to 'yes' to all prompts."),
8585
)
8686
def config_command(*, engine: str | None, force: bool) -> None:
8787
"""Set the default container engine for use by AlgoKit CLI to run LocalNet images."""

src/algokit/cli/project/deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
191191
"-c",
192192
type=_CommandParamType(),
193193
default=None,
194-
help=("Custom deploy command. If not provided, will load the deploy command " "from .algokit.toml file."),
194+
help=("Custom deploy command. If not provided, will load the deploy command from .algokit.toml file."),
195195
required=False,
196196
)
197197
@click.option(
@@ -309,7 +309,7 @@ def deploy_command( # noqa: PLR0913
309309
continue
310310

311311
_execute_deploy_command(
312-
path=project.get("cwd", None),
312+
path=project.get("cwd", Path.cwd()),
313313
environment_name=environment_name,
314314
command=None,
315315
interactive=interactive,

src/algokit/cli/project/link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _prompt_contract_project() -> ContractArtifacts | None:
112112
return None
113113

114114
return typing.cast(
115-
ContractArtifacts,
115+
"ContractArtifacts",
116116
questionary_extensions.prompt_select(
117117
"Select contract project to link with",
118118
*[questionary.Choice(title=contract.project_name, value=contract) for contract in contract_projects],

src/algokit/cli/tasks/mint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
MAX_UNIT_NAME_BYTE_LENGTH = 8
3333
MAX_ASSET_NAME_BYTE_LENGTH = 32
34-
ASSET_MINTING_MBR = Decimal(0.2) # Algos, 0.1 for base account, 0.1 for asset creation
34+
ASSET_MINTING_MBR = Decimal("0.2") # Algos, 0.1 for base account, 0.1 for asset creation
3535

3636

3737
def _validate_supply(total: int, decimals: int) -> None:

src/algokit/cli/tasks/send_transaction.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import json
22
import logging
3-
from io import TextIOWrapper
43
from pathlib import Path
5-
from typing import cast
4+
from typing import TYPE_CHECKING, cast
65

76
import click
87
from algosdk import encoding, error
@@ -15,6 +14,9 @@
1514
stdin_has_content,
1615
)
1716

17+
if TYPE_CHECKING:
18+
from io import TextIOWrapper
19+
1820
logger = logging.getLogger(__name__)
1921

2022

@@ -44,7 +46,7 @@ def _load_from_stdin() -> list[SignedTransaction]:
4446
"""
4547
# Read the raw file content from the standard input
4648

47-
raw_file_content = cast(TextIOWrapper, click.get_text_stream("stdin")).read()
49+
raw_file_content = cast("TextIOWrapper", click.get_text_stream("stdin")).read()
4850

4951
try:
5052
# Parse the raw file content as JSON
@@ -88,7 +90,7 @@ def _get_signed_transactions(file: Path | None = None, transaction: str | None =
8890
if not isinstance(txn, SignedTransaction):
8991
raise click.ClickException("Supplied transaction is not signed!")
9092

91-
return cast(list[SignedTransaction], txns)
93+
return cast("list[SignedTransaction]", txns)
9294

9395
except Exception as ex:
9496
logger.debug(ex, exc_info=True)

src/algokit/cli/tasks/sign_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _get_transactions(file: Path | None, transaction: str | None) -> list[Transa
3636
txns: list[Transaction] = retrieve_from_file(str(file)) # type: ignore[no-untyped-call]
3737
return txns
3838
else:
39-
return [cast(Transaction, encoding.msgpack_decode(transaction))] # type: ignore[no-untyped-call]
39+
return [cast("Transaction", encoding.msgpack_decode(transaction))] # type: ignore[no-untyped-call]
4040
except Exception as ex:
4141
logger.debug(ex, exc_info=True)
4242
raise click.ClickException(

src/algokit/cli/tasks/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def validate_account_balance_to_opt_in(
280280
if not isinstance(account_info, dict):
281281
raise click.ClickException("Invalid account info response")
282282

283-
required_microalgos = num_assets * AlgoAmount.from_algo(Decimal(0.1)).micro_algo
283+
required_microalgos = num_assets * AlgoAmount.from_algo(Decimal("0.1")).micro_algo
284284
available_microalgos = account_info.get("amount", 0)
285285
if available_microalgos < required_microalgos:
286286
required_algo = AlgoAmount.from_micro_algo(required_microalgos).algo

0 commit comments

Comments
 (0)