Skip to content

Commit

Permalink
chore: lockfile maintenance; bumping copier version; setting up depen…
Browse files Browse the repository at this point in the history
…dabot (#478)

* chore: removing pinned transitive dep

* chore: setting up dependabot

* chore: fixing copier 9.2.0 issues
  • Loading branch information
aorumbayev authored Apr 17, 2024
1 parent a83b944 commit bf5980f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 45 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(deps)"
groups:
all:
patterns:
- "*"
update-types:
- "minor"
- "patch"
47 changes: 9 additions & 38 deletions poetry.lock

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

4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
python = ">=3.10,<3.13"
click = "^8.1.3"
httpx = "^0.23.1"
copier = "^9.0.0"
copier = "^9.2.0"
questionary = "^1.10.0"
pyclip = "^0.7.0"
shellingham = "^1.5.0.post1"
Expand All @@ -25,8 +25,6 @@ multiformats = "0.3.1"
multiformats_config = "0.3.1" # pinned this to be in lockstep with multiformats
aiohttp = "3.9.3"
jsondiff = "^2.0.0"
# Pinning to fix copier transitive dependency, remove this once https://github.com/copier-org/copier/issues/1568 is fixed.
pyyaml-include = "1.4.1"

[tool.poetry.group.dev.dependencies]
pyinstaller = {version = "^6.3.0"}
Expand Down
4 changes: 2 additions & 2 deletions src/algokit/cli/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def init_command( # noqa: PLR0913, C901, PLR0915
# 2. the import fails if git is not installed (which we check above)
# TODO: copier is typed, need to figure out how to force mypy to accept that or submit a PR
# to their repo to include py.typed file
from copier.main import Worker # type: ignore[import]
from copier.main import Worker

from algokit.core.init import populate_default_answers

Expand Down Expand Up @@ -518,7 +518,7 @@ def _fail_and_bail() -> NoReturn:

def _repo_url_is_valid(url: str) -> bool:
"""Check the repo URL is valid according to copier"""
from copier.vcs import get_repo # type: ignore[import]
from copier.vcs import get_repo

if not url:
return False
Expand Down
2 changes: 1 addition & 1 deletion src/algokit/core/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run_generator(answers: dict, path: Path) -> None:
# copier is lazy imported for two reasons
# 1. it is slow to import on first execution after installing
# 2. the import fails if git is not installed (which we check above)
from copier.main import Worker # type: ignore[import]
from copier.main import Worker

cwd = Path.cwd()
with Worker(
Expand Down
4 changes: 3 additions & 1 deletion src/algokit/core/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
from pathlib import Path
from typing import Any, cast

from copier.main import MISSING, AnswersMap, Question, Worker # type: ignore[import]
from copier.main import Worker
from copier.types import MISSING
from copier.user_data import AnswersMap, Question

from algokit.core.project import get_project_dir_names_from_workspace

Expand Down

1 comment on commit bf5980f

@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
   __init__.py15753%6–13, 17–24, 32–34
   __main__.py440%1–7
src/algokit/cli
   __init__.py47394%31–34
   completions.py108298%83, 98
   dispenser.py121199%77
   doctor.py49394%143–145
   explore.py501276%34–39, 41–46
   generate.py70396%76–77, 155
   goal.py44198%71
   init.py3092492%493–494, 499–500, 503, 524, 527–529, 540, 544, 602, 628, 657, 690, 699–701, 704–709, 722, 741, 753–754
   localnet.py1191587%74–78, 111, 123, 138–148, 161, 206, 227–228
   task.py34391%25–28
src/algokit/cli/common
   utils.py26292%120, 123
src/algokit/cli/project
   bootstrap.py32197%33
   deploy.py992080%47, 49, 101, 124, 146–148, 227, 234, 248–256, 259–268
   link.py891682%60, 65–66, 101–105, 115–120, 148–149, 218–219, 223
   list.py33585%21–23, 51–56
   run.py46393%38, 71, 160
src/algokit/cli/tasks
   analyze.py81199%81
   assets.py821384%65–66, 72, 74–75, 105, 119, 125–126, 132, 134, 136–137
   ipfs.py51884%52, 80, 92, 94–95, 105–107
   mint.py66494%48, 70, 91, 250
   send_transaction.py651085%52–53, 57, 89, 158, 170–174
   sign_transaction.py59886%21, 28–30, 71–72, 109, 123
   transfer.py39392%26, 90, 117
   utils.py994555%26–34, 40–43, 75–76, 100–101, 125–133, 152–162, 209, 258–259, 279–290, 297–299
   vanity_address.py561082%41, 45–48, 112, 114, 121–123
   wallet.py79495%21, 66, 136, 162
src/algokit/core
   conf.py57984%12, 24, 28, 36, 38, 73–75, 80
   dispenser.py2022687%91, 123–124, 141–149, 191–192, 198–200, 218–219, 259–260, 318, 332–334, 345–346, 356, 369, 384
   doctor.py65789%67–69, 92–94, 134
   generate.py48394%44, 81, 99
   goal.py60395%30–31, 41
   init.py671085%53, 57–62, 70, 81, 88, 108–109
   log_handlers.py68790%50–51, 63, 112–116, 125
   proc.py45198%98
   sandbox.py2181892%62, 73–75, 96, 142–149, 160, 456, 472, 497, 505
   typed_client_generation.py1732387%62–64, 77, 82, 86, 106–111, 135, 138–141, 159, 162–165, 232, 235–238
   utils.py1584671%51–52, 56–77, 134–140, 164, 167, 173–186, 207–209, 238–241, 263
   version_prompt.py921485%37–38, 68, 87–90, 108, 118–125, 148
src/algokit/core/compilers
   python.py28582%19–20, 25, 49–50
src/algokit/core/project
   __init__.py53394%50, 86, 145
   bootstrap.py120893%47, 125–126, 148, 175, 206–208
   deploy.py54983%61–64, 73–75, 79, 84
   run.py1251588%83, 88, 97–98, 133–134, 138–139, 143, 147, 261–269, 284
src/algokit/core/tasks
   analyze.py93397%105–112, 187
   ipfs.py63789%58–64, 140, 144, 146, 152
   nfd.py491373%25, 31, 34–41, 70–72, 99–101
   vanity_address.py903462%49–50, 54, 59–75, 92–108, 128–131
   wallet.py71593%37, 129, 155–157
src/algokit/core/tasks/mint
   mint.py781087%123–133, 187
   models.py901188%50, 52, 57, 71–74, 85–88
TOTAL428952188% 

Tests Skipped Failures Errors Time
482 0 💤 0 ❌ 0 🔥 42.439s ⏱️

Please sign in to comment.