From 62dcb73fade00289ea1df292b27467db9deaf362 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Mar 2023 19:50:29 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/build-docker.yml | 1 - .github/workflows/tests.yaml | 3 +-- scripts/get_installed_capacity.py | 3 --- tests/readme.md | 3 +-- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 5eb8db0..6559cb1 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -10,7 +10,6 @@ jobs: name: Run tests runs-on: ubuntu-latest steps: - - name: Check out the repo uses: actions/checkout@v2 with: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2b593de..c6f3332 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -19,7 +19,7 @@ jobs: - name: Install python uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: "3.10" cache: poetry - name: Install python dependencies @@ -38,6 +38,5 @@ jobs: SS_URL: ${{ secrets.SS_URL }} SS_USER_ID: ${{ secrets.SYSTEMSS_USER_ID_ID }} - - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 diff --git a/scripts/get_installed_capacity.py b/scripts/get_installed_capacity.py index 91a0008..409f792 100644 --- a/scripts/get_installed_capacity.py +++ b/scripts/get_installed_capacity.py @@ -10,8 +10,6 @@ import json import boto3 -import fsspec -import pandas as pd import xarray import xarray as xr from nowcasting_datamodel.connection import DatabaseConnection @@ -39,7 +37,6 @@ # get pv systems from database and update connection = DatabaseConnection(url=db_url, base=Base_PV, echo=True) with connection.get_session() as session: - pv_systems = session.query(PVSystemSQL).all() for pv_system in pv_systems: diff --git a/tests/readme.md b/tests/readme.md index cf89940..f0dba82 100644 --- a/tests/readme.md +++ b/tests/readme.md @@ -12,5 +12,4 @@ To run the intergration tests you will need to set the following variables - SYSTEM_ID: system id for pvoutput.org - DATA_SERVICE_URL: the URL for the pvoutput.org data service -TODO we should mock some of the APIs to and then more unittests can be run with out the real connection details. - +TODO we should mock some of the APIs to and then more unittests can be run with out the real connection details.