Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
resolve linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Jan 29, 2024
1 parent c03ab6f commit 93b4b73
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions lincbrain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ def set_logger_level(lgr, level):
lgr = get_logger()
set_logger_level(lgr, os.environ.get("DANDI_LOG_LEVEL", logging.INFO))

from . import _version
__version__ = _version.get_versions()['version']
from . import _version # noqa: E402

__version__ = _version.get_versions()["version"]
2 changes: 1 addition & 1 deletion lincbrain/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def urls(self) -> Iterator[str]:
"dandi-staging": DandiInstance(
"dandi-staging",
"https://staging--gui-staging-lincbrain-org.netlify.app",
"https://staging-api.lincbrain.org/api"
"https://staging-api.lincbrain.org/api",
),
"dandi-api-local-docker-tests": DandiInstance(
"dandi-api-local-docker-tests",
Expand Down
2 changes: 1 addition & 1 deletion lincbrain/dandiapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def __init__(
:param str token: User API Key. Note that different instance APIs have
different keys.
"""
# check_dandi_version()
check_dandi_version()
if api_url is None:
if dandi_instance is None:
instance_name = os.environ.get("DANDI_INSTANCE", "dandi")
Expand Down
1 change: 0 additions & 1 deletion lincbrain/tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ def get_gitrepo_fixture(
scope: Scope = "session",
make_subdirs_dandisets: bool = False,
) -> Callable[[pytest.TempPathFactory], Path]:

if committish:
raise NotImplementedError()

Expand Down
2 changes: 1 addition & 1 deletion lincbrain/tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,4 +959,4 @@ def test_pyouthelper_time_remaining_1339():
# once done, dont print ETA
assert len(done) == 2
else:
assert done[-1] == f"ETA: {10-i} seconds<"
assert done[-1] == f"ETA: {10-i} seconds<" # noqa: E226
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
setup_kw = {}

if __name__ == "__main__":
setup(name="lincbrain", **setup_kw)
setup(name="lincbrain", **setup_kw)

0 comments on commit 93b4b73

Please sign in to comment.