Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Ignore F401 in __init__.py
Because the nicest modular Pythonic design is to import all your public
API from supporting files into __init__.py, so they are available from
the toplevel, and we don't want flake8 yelling at us about it.

Thanks to @gselzer and https://stackoverflow.com/a/58029222/1207769.
  • Loading branch information
ctrueden committed Dec 6, 2023
commit ec6a1ab9d6107af35e2e32b223c173e1b34ca9c4
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ extend-ignore = ["E203"]
# See https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
max-line-length = 88
min_python_version = "3.8"
per-file-ignores = "__init__.py:F401"

[tool.isort]
profile = "black"
10 changes: 5 additions & 5 deletions src/scyjava/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
from functools import lru_cache
from typing import Any, Callable, Dict

from ._arrays import is_arraylike, is_memoryarraylike, is_xarraylike # noqa: F401
from ._convert import ( # noqa: F401
from ._arrays import is_arraylike, is_memoryarraylike, is_xarraylike
from ._convert import (
Converter,
JavaCollection,
JavaIterable,
Expand Down Expand Up @@ -106,8 +106,8 @@
when_jvm_starts,
when_jvm_stops,
)
from ._script import enable_python_scripting # noqa: F401
from ._types import ( # noqa: F401
from ._script import enable_python_scripting
from ._types import (
JavaClasses,
is_jarray,
isjava,
Expand All @@ -117,7 +117,7 @@
jstacktrace,
numeric_bounds,
)
from ._versions import compare_version, get_version, is_version_at_least # noqa: F401
from ._versions import compare_version, get_version, is_version_at_least

__version__ = get_version("scyjava")
__all__ = [
Expand Down