Skip to content

Commit

Permalink
Update to black 2024 stable style
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Jan 30, 2024
1 parent 9fee4eb commit f48bf2d
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/bx/align/core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Classes that represent alignments between multiple sequences.
"""

import random
import weakref

Expand Down
1 change: 0 additions & 1 deletion lib/bx/align/epo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Classes and utilities for mutliple alignments from the EPO pipeline"""


import logging
import os
import pickle as cPickle
Expand Down
1 change: 1 addition & 0 deletions lib/bx/align/maf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.. _MAF: http://genome.ucsc.edu/FAQ/FAQformat.html#format5
.. _multiz: http://www.bx.psu.edu/miller_lab/
"""

from io import (
StringIO,
TextIOWrapper,
Expand Down
1 change: 1 addition & 0 deletions lib/bx/align/score_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for `bx.align.score`.
"""

import unittest
from io import StringIO

Expand Down
1 change: 1 addition & 0 deletions lib/bx/align/sitemask/sitemask_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for `bx.align.maf.sitemask`.
"""

import tempfile
from io import StringIO

Expand Down
1 change: 1 addition & 0 deletions lib/bx/interval_index_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
... ... ...
============ =========== =================================================
"""

import os.path
import sys
from bisect import (
Expand Down
1 change: 0 additions & 1 deletion lib/bx/intervals/operations/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Merge overlapping regions in two sets of genomic intervals.
"""


from bx.intervals.io import BitsetSafeReaderWrapper
from bx.intervals.operations import (
bits_set_in_range,
Expand Down
1 change: 1 addition & 0 deletions lib/bx/misc/binary_file.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Wrappers for doing binary IO on file-like objects
"""

import struct
import sys

Expand Down
1 change: 1 addition & 0 deletions lib/bx/misc/seekbzip2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Semi-random access to bz2 compressed data.
"""

import bisect

from ._seekbzip2 import SeekBzip2
Expand Down
1 change: 1 addition & 0 deletions lib/bx/misc/seekbzip2_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for `bx.misc.seekbzip2`.
"""

import bz2
import os
import random
Expand Down
1 change: 1 addition & 0 deletions lib/bx/motif/pwm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Classes for working with position specific matrices.
"""

from copy import copy

import numpy
Expand Down
1 change: 1 addition & 0 deletions lib/bx/seq/qdna.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
Recognized properties (at present only one):
- codebook: A string in qdna code file format (see QdnaCodebook class for details).
"""

import struct
from io import StringIO

Expand Down
1 change: 1 addition & 0 deletions lib/bx/seq/twobit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Access to files containing sequence data in 'twobit' format.
"""

from collections.abc import Mapping
from struct import (
calcsize,
Expand Down
1 change: 1 addition & 0 deletions lib/bx/seqmapping_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for `bx.seqmapping`.
"""

import unittest
from io import StringIO

Expand Down
1 change: 1 addition & 0 deletions lib/bx/tabular/io.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Reading and writing delimited data files (with headers and comments).
"""

from itertools import count

FIRST_LINE_IS_HEADER = object()
Expand Down
1 change: 1 addition & 0 deletions lib/bx/wiggle_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for `bx.wiggle`.
"""

import unittest
from io import StringIO

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ snapshot = egg_info -rb_DEV bdist_egg rotate -m.egg -k1
build_docs = build_sphinx build_apidocs

[flake8]
ignore = E203,E501,E741,W503
ignore = E203,E501,E701,E704,E741,W503
exclude = .git,.tox,.venv,build,doc/source/conf.py
import-order-style = smarkets
application-import-names = bx,bx_extras
Expand Down

0 comments on commit f48bf2d

Please sign in to comment.