Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
exclude: ^LICENSE/|\.(html|csv|svg|md)$
default_stages: [commit]
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -13,25 +13,25 @@ repos:
- id: absolufy-imports
files: ^gridstatus/
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.3
rev: v3.1.0
hooks:
- id: add-trailing-comma
name: Add trailing comma
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.10.1
rev: v0.23
hooks:
- id: validate-pyproject
- repo: https://github.com/python/black
rev: 22.12.0
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
args:
- --target-version=py311
- --line-length=88
additional_dependencies: [".[jupyter]"]
types_or: [python, jupyter]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.202
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.7
hooks:
- id: ruff
args: ["--fix"]
6 changes: 3 additions & 3 deletions docs/Examples/caiso/Ancillary Services.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd\n",
"import plotly.express as px"
"import plotly.express as px\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/Examples/caiso/Downloading CAISO Data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd\n",
"import plotly.express as px"
"import plotly.express as px\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
7 changes: 2 additions & 5 deletions docs/Examples/caiso/Renewable Curtailment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd\n",
"import plotly.express as px\n",
"import numpy as np\n",
"from plotly.subplots import make_subplots\n",
"import plotly.graph_objects as go"
"\n",
"import gridstatus"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/Examples/ercot/Ancillary Services.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd\n",
"import plotly.express as px"
"import plotly.express as px\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/Examples/ercot/Settlement Point Prices.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd"
"import pandas as pd\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/Examples/misc/Interconnection Queues.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd\n",
"import plotly.express as px"
"import plotly.express as px\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/Examples/misc/Save To.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import plotly.express as px"
"import plotly.express as px\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/Examples/nyiso/Capacity Prices - NYISO.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import plotly.express as px"
"import plotly.express as px\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions docs/Examples/nyiso/Fuel Mix Over Time - NYISO.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd\n",
"import plotly.express as px"
"import plotly.express as px\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/Examples/pjm/PJM LMP Data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd"
"import pandas as pd\n",
"\n",
"import gridstatus"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/Examples/spp/LMP Data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"metadata": {},
"outputs": [],
"source": [
"import gridstatus\n",
"import pandas as pd"
"\n",
"import gridstatus"
]
},
{
Expand Down
5 changes: 4 additions & 1 deletion gridstatus/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def get_interconnection_queue(self):

def _latest_lmp_from_today(self, market, locations, **kwargs):
lmp_df = self.get_lmp(
date="today", market=market, locations=locations, **kwargs
date="today",
market=market,
locations=locations,
**kwargs,
)
# Assume sorted in ascending order
latest_df = lmp_df.groupby("Location").last().reset_index()
Expand Down