Skip to content

Commit

Permalink
Fix import order using linter (#53)
Browse files Browse the repository at this point in the history
* Update .pre-commit-config.yaml

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
jan-janssen and pre-commit-ci[bot] authored Jul 16, 2024
1 parent d300225 commit 27b18a2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: ruff
name: ruff lint
args: ["--fix"]
args: ["--select", "I", "--fix"]
files: ^h5io_browser/
- id: ruff-format
name: ruff format
2 changes: 1 addition & 1 deletion h5io_browser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from h5io_browser.pointer import Pointer
from h5io_browser.base import (
delete_item,
list_hdf,
read_dict_from_hdf,
read_nested_dict_from_hdf,
write_dict_to_hdf,
)
from h5io_browser.pointer import Pointer

from ._version import get_versions

Expand Down
2 changes: 1 addition & 1 deletion h5io_browser/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"""Git implementation of _version.py."""

import errno
import functools
import os
import re
import subprocess
import sys
from typing import Any, Callable, Dict, List, Optional, Tuple
import functools


def get_keywords() -> Dict[str, str]:
Expand Down
10 changes: 5 additions & 5 deletions h5io_browser/base.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import os
import numpy as np
import h5io
import h5py
from itertools import count
import posixpath
import sys
import time
from typing import Callable, TypeVar, Type, Tuple, Optional, Union
import warnings
from itertools import count
from typing import Callable, Optional, Tuple, Type, TypeVar, Union

import h5io
import h5py
import numpy as np

T = TypeVar("T")

Expand Down
5 changes: 3 additions & 2 deletions h5io_browser/pointer.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os
from collections.abc import MutableMapping
import posixpath
from collections.abc import MutableMapping

from h5io_browser.base import (
_open_hdf,
delete_item,
list_hdf,
_open_hdf,
read_dict_from_hdf,
write_dict_to_hdf,
)
Expand Down

0 comments on commit 27b18a2

Please sign in to comment.