diff --git a/docs/source/conf.py b/docs/source/conf.py index c30c43c8..cb331cbf 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -32,9 +32,9 @@ def copy_readme(): idx = data.index( "To contribute changes please consult our `Contribution guidelines `_\n" ) - data[ - idx - ] = "To contribute changes please consult our `Contribution guidelines `_\n" + data[idx] = ( + "To contribute changes please consult our `Contribution guidelines `_\n" + ) with open("readme.rst", "w") as fp: fp.writelines(data) diff --git a/ramp/__init__.py b/ramp/__init__.py index 3f23af7e..d3753eb8 100644 --- a/ramp/__init__.py +++ b/ramp/__init__.py @@ -13,7 +13,6 @@ - random """ - from ramp._version import __version__ from ramp.core.core import UseCase, User, Appliance from ramp.core.utils import yearly_pattern, get_day_type diff --git a/ramp/core/core.py b/ramp/core/core.py index 0aff87f4..a729e716 100644 --- a/ramp/core/core.py +++ b/ramp/core/core.py @@ -42,7 +42,9 @@ def single_appliance_daily_load_profile(args): return args[0], app.daily_use -warnings.simplefilter('always', DeprecationWarning) + +warnings.simplefilter("always", DeprecationWarning) + class UseCase: def __init__( @@ -882,7 +884,10 @@ def Appliance( refer to Appliance class docs """ - warnings.warn("This function is deprecated and not supported since version v0.4.0. Instead use the add_appliance method.", DeprecationWarning) + warnings.warn( + "This function is deprecated and not supported since version v0.4.0. Instead use the add_appliance method.", + DeprecationWarning, + ) return self.add_appliance( number=number,