Skip to content

Commit 32737f7

Browse files
committed
fixes and TODOs
1 parent 56f64ed commit 32737f7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

conda_forge_tick/auto_tick.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
import typing
1111
from dataclasses import dataclass
1212
from typing import AnyStr, Literal, cast
13-
14-
from .models.pr_info import PullRequestInfoSpecial
15-
from .models.pr_json import PullRequestData, PullRequestState
16-
17-
if typing.TYPE_CHECKING:
18-
from .migrators_types import MigrationUidTypedDict
19-
2013
from urllib.error import URLError
2114
from uuid import uuid4
2215

@@ -76,6 +69,10 @@
7669
sanitize_string,
7770
)
7871

72+
from .migrators_types import MigrationUidTypedDict
73+
from .models.pr_info import PullRequestInfoSpecial
74+
from .models.pr_json import PullRequestData, PullRequestState
75+
7976
logger = logging.getLogger(__name__)
8077

8178
BOT_HOME_DIR: str = os.getcwd()
@@ -793,6 +790,7 @@ def _run_migrator_on_feedstock_branch(
793790

794791
except (github3.GitHubError, github.GithubException) as e:
795792
# TODO: pull this down into run() - also check the other exceptions
793+
# TODO: continue here, after that run locally and add tests, backend should be injected into run
796794
if hasattr(e, "msg") and e.msg == "Repository was archived so is read-only.":
797795
attrs["archived"] = True
798796
else:
@@ -1124,7 +1122,7 @@ def _update_nodes_with_bot_rerun(gx: nx.DiGraph, package: str | None = None):
11241122

11251123
nodes = gx.nodes.items() if not package else [(package, gx.nodes[package])]
11261124

1127-
for i, (name, node) in nodes:
1125+
for i, (name, node) in enumerate(nodes):
11281126
# logger.info(
11291127
# f"node: {i} memory usage: "
11301128
# f"{psutil.Process().memory_info().rss // 1024 ** 2}MB",
@@ -1332,6 +1330,7 @@ def main(ctx: CliContext, package: str | None = None) -> None:
13321330
smithy_version=smithy_version,
13331331
pinning_version=pinning_version,
13341332
)
1333+
# TODO: this does not support --online
13351334
migrators = load_migrators()
13361335

13371336
# compute the time per migrator

0 commit comments

Comments
 (0)