Skip to content

Commit

Permalink
Pre-commit run all
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering committed Oct 25, 2023
1 parent 78b3ba8 commit 49231e6
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import numpy as np
import pytest
import xarray as xr

from calliope import AttrDict
from calliope.backend import latex_backend_model, pyomo_backend_model

Expand Down
1 change: 0 additions & 1 deletion tests/test_backend_helper_functions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
import pytest
import xarray as xr

from calliope import exceptions
from calliope.backend import helper_functions

Expand Down
3 changes: 1 addition & 2 deletions tests/test_backend_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
from io import StringIO
from unittest.mock import patch

import calliope
import pyparsing as pp
import pytest
import ruamel.yaml as yaml

import calliope
from calliope.backend import backend_model, expression_parser, parsing, where_parser

from .common.util import check_error_or_warning
Expand Down
3 changes: 1 addition & 2 deletions tests/test_backend_pyomo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
from copy import deepcopy
from itertools import product

import calliope.exceptions as exceptions
import numpy as np
import pandas as pd
import pyomo.kernel as pmo
import pytest # noqa: F401
import xarray as xr

import calliope.exceptions as exceptions
from calliope.backend.pyomo_backend_model import PyomoBackendModel
from calliope.core.attrdict import AttrDict

Expand Down
1 change: 0 additions & 1 deletion tests/test_backend_where_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pyparsing
import pytest
import xarray as xr

from calliope.backend import expression_parser, helper_functions, where_parser
from calliope.core.attrdict import AttrDict
from calliope.exceptions import BackendError
Expand Down
3 changes: 1 addition & 2 deletions tests/test_model_data.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import logging
from pathlib import Path

import calliope.exceptions as exceptions
import numpy as np
import pandas as pd
import pytest

import calliope.exceptions as exceptions
from calliope._version import __version__
from calliope.core.attrdict import AttrDict
from calliope.preprocess import model_run_from_yaml
Expand Down
1 change: 0 additions & 1 deletion tests/test_model_manipulation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest # noqa: F401

from calliope import exceptions

from .common.util import build_test_model as build_model
Expand Down

0 comments on commit 49231e6

Please sign in to comment.