Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import constants from new/dedicated location (not utils) #575

Merged
merged 1 commit into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datalad_next/annexremotes/tests/test_uncurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest
import re

from datalad_next.utils import on_windows
from datalad_next.consts import on_windows
from datalad_next.tests.utils import (
create_tree,
skip_if_on_windows,
Expand Down
2 changes: 1 addition & 1 deletion datalad_next/constraints/tests/test_cmdarg_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Parameter,
eval_results,
)
from datalad_next.utils import on_windows
from datalad_next.consts import on_windows
from .. import (
ConstraintError,
EnsureGeneratorFromFileLike,
Expand Down
2 changes: 1 addition & 1 deletion datalad_next/constraints/tests/test_compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from unittest.mock import patch
from pathlib import Path

from datalad_next.consts import on_windows
from datalad_next.exceptions import CapturedException
from datalad_next.utils import on_windows

from ..base import DatasetParameter

Expand Down
6 changes: 4 additions & 2 deletions datalad_next/gitremotes/datalad_annex.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@

from datalad.core.local.repo import repo_from_path

from datalad_next.consts import (
PRE_INIT_COMMIT_SHA,
on_windows,
)
from datalad_next.constraints import EnsureInt
from datalad_next.datasets import (
LegacyAnnexRepo as AnnexRepo,
Expand All @@ -212,7 +216,6 @@
from datalad_next.uis import ui_switcher as ui
from datalad_next.utils import (
external_versions,
on_windows,
rmtree,
)

Expand All @@ -224,7 +227,6 @@
specialremote_credential_envmap,
update_specialremote_credential,
)
from datalad_next.utils.consts import PRE_INIT_COMMIT_SHA

lgr = logging.getLogger('datalad.gitremote.datalad_annex')

Expand Down
2 changes: 1 addition & 1 deletion datalad_next/gitremotes/tests/test_datalad_annex.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
eq_,
rmtree,
)
from datalad_next.utils import on_windows
from datalad_next.consts import on_windows
from datalad_next.exceptions import CommandError
from ..datalad_annex import get_initremote_params_from_url

Expand Down
Loading