Appease black
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-05-16 18:20:35 +02:00
parent 669983298f
commit 70c6d2f746
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
4 changed files with 7 additions and 7 deletions

View File

@ -10,6 +10,6 @@ except ImportError:
try:
__version__ = pkg_resources.get_distribution('flat_tree').version
__version__ = pkg_resources.get_distribution("flat_tree").version
except Exception:
__version__ = 'unknown'
__version__ = "unknown"

View File

@ -1,6 +1,6 @@
"""An accessor for navigating flat trees."""
__all__ = ['FlatTreeAccessor']
__all__ = ["FlatTreeAccessor"]
from typing import List, Optional
@ -155,7 +155,7 @@ class FlatTreeAccessor:
:param index: The index of the root of the tree
"""
if index & 1:
message = 'Roots only available for tree depth 0'
message = "Roots only available for tree depth 0"
raise ValueError(message)
roots: List[int] = []

View File

@ -1,6 +1,6 @@
"""Stateful iterator for flat trees."""
__all__ = ['FlatTreeIterator']
__all__ = ["FlatTreeIterator"]
import attr

View File

@ -2,9 +2,9 @@
def test_version_fails_gracefully(mocker):
target = 'pkg_resources.get_distribution'
target = "pkg_resources.get_distribution"
mocker.patch(target, side_effect=Exception())
from flat_tree.__init__ import __version__
assert __version__ == 'unknown'
assert __version__ == "unknown"