Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 13, 2024
1 parent a32df31 commit 02bf00d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging
import os
import random
from uuid import uuid4

import numpy as np
import pandas as pd
Expand All @@ -17,7 +18,6 @@
from pvsite_datamodel.sqlmodels import Base, GenerationSQL, ForecastSQL, ForecastValueSQL, SiteSQL
from sqlalchemy import create_engine
from testcontainers.postgres import PostgresContainer
from uuid import uuid4

log = logging.getLogger(__name__)

Check failure on line 22 in tests/conftest.py

View workflow job for this annotation

GitHub Actions / lint_and_test / Lint the code and run the tests

Ruff (I001)

tests/conftest.py:5:1: I001 Import block is un-sorted or un-formatted

Expand Down Expand Up @@ -202,6 +202,7 @@ def forecast_values():

@pytest.fixture()
def forecasts(db_session, sites):
"""Make fake forecasts"""
init_timestamp = pd.Timestamp(dt.datetime.now(tz=None)).floor(dt.timedelta(minutes=15))

n = 24 * 4 # 24 hours of readings of 15
Expand Down
5 changes: 3 additions & 2 deletions tests/test_adjuster.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from india_forecast_app.adjuster import get_me_values, adjust_forecast_with_adjuster
from datetime import datetime

Check failure on line 1 in tests/test_adjuster.py

View workflow job for this annotation

GitHub Actions / lint_and_test / Lint the code and run the tests

Ruff (D100)

tests/test_adjuster.py:1:1: D100 Missing docstring in public module

import pandas as pd

from datetime import datetime
from india_forecast_app.adjuster import get_me_values, adjust_forecast_with_adjuster


def test_get_me_values_no_values(db_session, sites):

Check failure on line 8 in tests/test_adjuster.py

View workflow job for this annotation

GitHub Actions / lint_and_test / Lint the code and run the tests

Ruff (I001)

tests/test_adjuster.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 8 in tests/test_adjuster.py

View workflow job for this annotation

GitHub Actions / lint_and_test / Lint the code and run the tests

Ruff (D103)

tests/test_adjuster.py:8:5: D103 Missing docstring in public function
Expand Down

0 comments on commit 02bf00d

Please sign in to comment.