diff --git a/src/barril/__init__.py b/src/barril/__init__.py index ca75d42..49e73f4 100644 --- a/src/barril/__init__.py +++ b/src/barril/__init__.py @@ -1,4 +1,3 @@ - """Top-level package for Barril.""" __author__ = """ESSS""" diff --git a/src/barril/basic/format_float/_tests/test_format_float.py b/src/barril/basic/format_float/_tests/test_format_float.py index dde11ec..2acb1c5 100644 --- a/src/barril/basic/format_float/_tests/test_format_float.py +++ b/src/barril/basic/format_float/_tests/test_format_float.py @@ -1,4 +1,3 @@ - import locale from barril.basic.format_float import FormatFloat, MINUS_INFINITY, NAN, PLUS_INFINITY diff --git a/src/barril/conftest.py b/src/barril/conftest.py index de08fae..448711b 100644 --- a/src/barril/conftest.py +++ b/src/barril/conftest.py @@ -1,4 +1,3 @@ - import pytest from barril import units diff --git a/src/barril/units/_quantity.py b/src/barril/units/_quantity.py index a3f877b..a9e48d0 100644 --- a/src/barril/units/_quantity.py +++ b/src/barril/units/_quantity.py @@ -661,9 +661,16 @@ def Convert(self, value, to_unit): An object with values to the passed unit. """ try: - return self._unit_database.Convert(self._composing_categories, self._composing_units, to_unit, value) + return self._unit_database.Convert( + self._composing_categories, self._composing_units, to_unit, value + ) except: - return self._unit_database.Convert(self._category, self._CreateUnitsWithJoinedExponentsString(), to_unit, value) + return self._unit_database.Convert( + self._category, + self._CreateUnitsWithJoinedExponentsString(), + to_unit, + value, + ) @classmethod def _GetComparison(cls, operator, use_literals=False): diff --git a/src/barril/units/_tests/test_posc.py b/src/barril/units/_tests/test_posc.py index 2638014..88db09c 100644 --- a/src/barril/units/_tests/test_posc.py +++ b/src/barril/units/_tests/test_posc.py @@ -1,4 +1,3 @@ - from barril import units from barril.units import ObtainQuantity from barril.units.posc import ( diff --git a/src/barril/units/_tests/test_posc2.py b/src/barril/units/_tests/test_posc2.py index 3cf9bc8..419b21e 100644 --- a/src/barril/units/_tests/test_posc2.py +++ b/src/barril/units/_tests/test_posc2.py @@ -1,4 +1,3 @@ - import pytest from pytest import approx diff --git a/src/barril/units/_tests/test_posc_additional_units.py b/src/barril/units/_tests/test_posc_additional_units.py index 003b4ff..2162317 100644 --- a/src/barril/units/_tests/test_posc_additional_units.py +++ b/src/barril/units/_tests/test_posc_additional_units.py @@ -1,4 +1,3 @@ - import pytest from pytest import approx diff --git a/src/barril/units/_tests/test_scalar.py b/src/barril/units/_tests/test_scalar.py index a98851e..07074bc 100644 --- a/src/barril/units/_tests/test_scalar.py +++ b/src/barril/units/_tests/test_scalar.py @@ -6,7 +6,13 @@ from barril import units from barril._foundation.odict import odict from barril.units import ( - ChangeScalars, InvalidOperationError, InvalidUnitError, ObtainQuantity, Quantity, Scalar) + ChangeScalars, + InvalidOperationError, + InvalidUnitError, + ObtainQuantity, + Quantity, + Scalar, +) from pytest import approx @@ -596,7 +602,6 @@ def testScalarHashEq(): def testChangeScalars(): - class Fluid: density = Scalar(0, "lbm/galUS") concentration = Scalar(0, "%") diff --git a/src/barril/units/_tests/test_unit_database.py b/src/barril/units/_tests/test_unit_database.py index e06efdb..0c94397 100644 --- a/src/barril/units/_tests/test_unit_database.py +++ b/src/barril/units/_tests/test_unit_database.py @@ -1,4 +1,3 @@ - import pytest from pytest import approx