Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 21, 2024
1 parent 81fa85f commit 005b97b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion utilix/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
def read_file(path):
"""Open a file from disk.
Auto-infers the file format :param path: str, file to open :return: opened file
Auto-infers the file format
:param path: str, file to open
:return: opened file
"""
# copied from straxen.common.open_resource
Expand Down
5 changes: 3 additions & 2 deletions utilix/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,9 @@ class PyMongoCannotConnect(Exception):
def test_collection(collection, url, raise_errors=False):
"""Warn user if client can be troublesome if read preference is not specified.
:param collection: pymongo client :param url: the mongo url we are testing (for the error
message) :param raise_errors: if False (default) warn, otherwise raise an error.
:param collection: pymongo client
:param url: the mongo url we are testing (for the error message)
:param raise_errors: if False (default) warn, otherwise raise an error.
"""
try:
Expand Down
4 changes: 2 additions & 2 deletions utilix/tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class Tarball:
def __init__(self, destination, package_name):
"""Class to tarball the editable user-installed from git repo.
:param destination: the destination folder of the tarball :param package_name: the name of
package
:param destination: the destination folder of the tarball
:param package_name: the name of package
"""
self.destination = destination
Expand Down

0 comments on commit 005b97b

Please sign in to comment.