Skip to content

Commit 1f5290f

Browse files
committed
updated poetry lock, new pylint and black versions
1 parent 923aa7d commit 1f5290f

8 files changed

Lines changed: 904 additions & 963 deletions

File tree

dr_simulator/costs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
"""
22
This module contains the cost functions used in the demand response simulator.
33
"""
44

@@ -43,7 +43,7 @@ def calculate_dr_payment_region(ratio, domains):
4343
raise ValueError("Ratio not in any domain")
4444

4545

46-
def calculate_dr_payment(
46+
def calculate_dr_payment( # pylint: disable=too-many-positional-arguments
4747
dr_period_details,
4848
capacity_bid,
4949
capacity_price,

dr_simulator/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" This module contains the data structures used in the demand response simulator. """
1+
"""This module contains the data structures used in the demand response simulator."""
22

33
# Demand response parameters
44
DR_NAME_KEY = "name"

dr_simulator/dr_events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"""
2-
This module contains the DemandResponseEvents class which is used to
3-
generate demand response events for a given time period based on user's inputs.
1+
"""
2+
This module contains the DemandResponseEvents class which is used to
3+
generate demand response events for a given time period based on user's inputs.
44
"""
55

66
import datetime as dt

dr_simulator/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" This module contains utility functions for DR Simulator """
1+
"""This module contains utility functions for DR Simulator"""
22

33
# pylint: disable=line-too-long, too-many-arguments, too-many-locals
44
import re

dr_simulator/visulization_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Helper functions for visualizing the DR event data """
1+
"""Helper functions for visualizing the DR event data"""
22

33
import datetime as dt
44
import numpy as np

poetry.lock

Lines changed: 894 additions & 953 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_costs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
"""
22
Tests for functions for `costs.py` module of the `dr_simulator` package.
33
"""
44

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
"""
22
Tests for functions for `utils.py` module of the `dr_simulator` package.
33
44
Docs: https://docs.pytest.org/en/latest/

0 commit comments

Comments
 (0)