Skip to content

Commit

Permalink
Fix Pyflakes F403 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Jul 15, 2024
1 parent 60e4977 commit 375bc45
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 9 deletions.
7 changes: 6 additions & 1 deletion lib/bx/align/sitemask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
example masking CpG sites or sites with low sequence quality.
"""

from bx.align.sitemask.core import * # noqa: F40
from bx.align.sitemask.core import (
Masker,
MaskPipeline,
)

__all__ = ["Masker", "MaskPipeline"]
2 changes: 1 addition & 1 deletion lib/bx/align/sitemask/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ def __call__(self, block):
try:
masker.__call__
except AttributeError:
raise Exception('Masker in pipeline does not implement "filter( self, block )".')
raise Exception('Masker in pipeline does not implement "filter(self, block)".')
masker(block)
25 changes: 21 additions & 4 deletions lib/bx/align/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,24 @@
Various utilities for working with `bx.align.Alignment` objects.
"""

from .chop import * # noqa: F40
from .fuse import * # noqa: F40
from .thread import * # noqa: F40
from .tile import * # noqa: F40
from .chop import chop_list
from .fuse import (
fuse,
fuse_list,
FusingAlignmentWriter,
)
from .thread import get_components_for_species
from .tile import (
intervals_from_mask,
tile_interval,
)

__all__ = [
"chop_list",
"fuse",
"fuse_list",
"FusingAlignmentWriter",
"get_components_for_species",
"intervals_from_mask",
"tile_interval",
]
9 changes: 8 additions & 1 deletion lib/bx/intervals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@
"""

# For compatiblity with existing stuff
from bx.intervals.intersection import * # noqa: F40
from bx.intervals.intersection import (
Intersecter,
Interval,
IntervalNode,
IntervalTree,
)

__all__ = ["Intersecter", "Interval", "IntervalNode", "IntervalTree"]
10 changes: 9 additions & 1 deletion lib/bx/seq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@
formats.
"""

from bx.seq.core import * # noqa: F40
from bx.seq.core import (
infer_format,
reverse_complement,
seq_file,
seq_reader,
seq_writer,
)

__all__ = ["infer_format", "reverse_complement", "seq_file", "seq_reader", "seq_writer"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ target-version = "py38"
# flake8-comprehensions (C4), flake8-logging-format (G),
# flake8-implicit-str-concat (ISC) and pyupgrade (UP)
#select = ["E", "F", "B", "C4", "G", "ISC", "NPY", "UP"]
select = ["E", "ISC"]
select = ["E", "F", "ISC"]
# Exceptions:
# B9 flake8-bugbear opinionated warnings
# E501 is line length (delegated to black)
Expand Down

0 comments on commit 375bc45

Please sign in to comment.