Skip to content

Commit

Permalink
Lint with black
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed May 8, 2024
1 parent 42e1c68 commit 011d007
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def copy_readme():
idx = data.index(
"To contribute changes please consult our `Contribution guidelines <https://github.com/RAMP-project/RAMP/blob/main/CONTRIBUTING.md>`_\n"
)
data[
idx
] = "To contribute changes please consult our `Contribution guidelines <contributing.html>`_\n"
data[idx] = (
"To contribute changes please consult our `Contribution guidelines <contributing.html>`_\n"
)
with open("readme.rst", "w") as fp:
fp.writelines(data)

Expand Down
1 change: 0 additions & 1 deletion ramp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions ramp/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 011d007

Please sign in to comment.