|
8 | 8 | from usethis._config import usethis_config |
9 | 9 | from usethis._console import tick_print, warn_print |
10 | 10 | from usethis._deps import add_deps_to_group, is_dep_in_any_group, remove_deps_from_group |
| 11 | +from usethis._integrations.backend.dispatch import get_backend |
| 12 | +from usethis._integrations.ci.bitbucket.anchor import ( |
| 13 | + ScriptItemAnchor as BitbucketScriptItemAnchor, |
| 14 | +) |
| 15 | +from usethis._integrations.ci.bitbucket.schema import Script as BitbucketScript |
| 16 | +from usethis._integrations.ci.bitbucket.schema import Step as BitbucketStep |
11 | 17 | from usethis._integrations.ci.bitbucket.steps import ( |
12 | 18 | add_bitbucket_step_in_default, |
13 | 19 | bitbucket_steps_are_equivalent, |
|
25 | 31 | from usethis._tool.config import ConfigSpec, NoConfigValue |
26 | 32 | from usethis._tool.pre_commit import PreCommitConfig |
27 | 33 | from usethis._tool.rule import RuleConfig |
| 34 | +from usethis._types.backend import BackendEnum |
28 | 35 | from usethis.errors import FileConfigError, NoDefaultToolCommand |
29 | 36 |
|
30 | 37 | if TYPE_CHECKING: |
31 | 38 | from pathlib import Path |
32 | 39 |
|
33 | 40 | from usethis._integrations.backend.uv.deps import Dependency |
34 | | - from usethis._integrations.ci.bitbucket.schema import Step as BitbucketStep |
35 | 41 | from usethis._integrations.pre_commit.schema import LocalRepo, UriRepo |
36 | 42 | from usethis._io import KeyValueFileManager |
37 | 43 | from usethis._tool.config import ConfigItem, ResolutionT |
@@ -571,14 +577,6 @@ def get_bitbucket_steps(self) -> list[BitbucketStep]: |
571 | 577 | Tools can override this method for more complex step requirements (e.g., pytest |
572 | 578 | with multiple Python versions, or Ruff with separate linter/formatter steps). |
573 | 579 | """ |
574 | | - from usethis._integrations.backend.dispatch import get_backend |
575 | | - from usethis._integrations.ci.bitbucket.anchor import ( |
576 | | - ScriptItemAnchor as BitbucketScriptItemAnchor, |
577 | | - ) |
578 | | - from usethis._integrations.ci.bitbucket.schema import Script as BitbucketScript |
579 | | - from usethis._integrations.ci.bitbucket.schema import Step as BitbucketStep |
580 | | - from usethis._types.backend import BackendEnum |
581 | | - |
582 | 580 | try: |
583 | 581 | cmd = self.default_command() |
584 | 582 | except NoDefaultToolCommand: |
|
0 commit comments