Skip to content

Commit

Permalink
black -t py35
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Nov 2, 2020
1 parent 09e888c commit a3e728f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ script:
- cd Rmagic; R CMD build .
- R CMD check *tar.gz
- cd ../python; pip install --user -q .[test]
- if [ "$TRAVIS_PYTHON_VERSION" != "3.5" ]; then black . --check --diff; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "3.5" ]; then black . --check --diff -t py35; fi
- python setup.py test
- pip install --user -q .[doc]
- cd doc; make html; cd ..
Expand Down
2 changes: 1 addition & 1 deletion autoblack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
files=\$(git diff --staged --name-only --diff-filter=d -- "*.py")
for file in \$files; do
black -q \$file
black -q -t py35 \$file
git add \$file
done
EOF
Expand Down
14 changes: 7 additions & 7 deletions python/magic/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def load_csv(
**kwargs
):
"""magic.io is deprecated. Please use scprep.io instead.
Read more at http://scprep.readthedocs.io/
Read more at http://scprep.readthedocs.io/
"""
raise RuntimeError(
"magic.io is deprecated. Please use scprep.io instead. "
Expand All @@ -35,7 +35,7 @@ def load_tsv(
**kwargs
):
"""magic.io is deprecated. Please use scprep.io instead.
Read more at http://scprep.readthedocs.io/
Read more at http://scprep.readthedocs.io/
"""
raise RuntimeError(
"magic.io is deprecated. Please use scprep.io instead. "
Expand All @@ -60,7 +60,7 @@ def load_fcs(
],
):
"""magic.io is deprecated. Please use scprep.io instead.
Read more at http://scprep.readthedocs.io/
Read more at http://scprep.readthedocs.io/
"""
raise RuntimeError(
"magic.io is deprecated. Please use scprep.io instead. "
Expand All @@ -71,7 +71,7 @@ def load_fcs(

def load_mtx(mtx_file, cell_axis="row", gene_names=None, cell_names=None, sparse=None):
"""magic.io is deprecated. Please use scprep.io instead.
Read more at http://scprep.readthedocs.io/
Read more at http://scprep.readthedocs.io/
"""
raise RuntimeError(
"magic.io is deprecated. Please use scprep.io instead. "
Expand All @@ -82,7 +82,7 @@ def load_mtx(mtx_file, cell_axis="row", gene_names=None, cell_names=None, sparse

def load_10X(data_dir, sparse=True, gene_labels="symbol", allow_duplicates=None):
"""magic.io is deprecated. Please use scprep.io instead.
Read more at http://scprep.readthedocs.io/
Read more at http://scprep.readthedocs.io/
"""
raise RuntimeError(
"magic.io is deprecated. Please use scprep.io instead. "
Expand All @@ -93,7 +93,7 @@ def load_10X(data_dir, sparse=True, gene_labels="symbol", allow_duplicates=None)

def load_10X_zip(filename, sparse=True, gene_labels="symbol", allow_duplicates=None):
"""magic.io is deprecated. Please use scprep.io instead.
Read more at http://scprep.readthedocs.io/
Read more at http://scprep.readthedocs.io/
"""
raise RuntimeError(
"magic.io is deprecated. Please use scprep.io instead. "
Expand All @@ -106,7 +106,7 @@ def load_10X_HDF5(
filename, genome=None, sparse=True, gene_labels="symbol", allow_duplicates=None
):
"""magic.io is deprecated. Please use scprep.io instead.
Read more at http://scprep.readthedocs.io/
Read more at http://scprep.readthedocs.io/
"""
raise RuntimeError(
"magic.io is deprecated. Please use scprep.io instead. "
Expand Down
2 changes: 1 addition & 1 deletion python/magic/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,6 @@ def knnDREMI(
n_mesh=n_mesh,
n_jobs=n_jobs,
plot=plot,
**kwargs
**kwargs,
)
return dremi
2 changes: 1 addition & 1 deletion python/magic/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def library_size_normalize(data, verbose=False):
"""magic.preprocessing is deprecated. Please use scprep.normalize instead.
Read more at http://scprep.readthedocs.io/
Read more at http://scprep.readthedocs.io/
"""
raise RuntimeError(
"magic.preprocessing is deprecated. Please use scprep.normalize instead. "
Expand Down
4 changes: 3 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
description="MAGIC",
author="",
author_email="",
packages=["magic",],
packages=[
"magic",
],
license="GNU General Public License Version 2",
install_requires=install_requires,
extras_require={"test": test_requires, "doc": doc_requires},
Expand Down

0 comments on commit a3e728f

Please sign in to comment.