From c79e978416579a7dc1b006ae206266678cd5224f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 20:56:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks For more information, see https://pre-commit.ci --- docs/conf.py | 1 + src/ferc1_eia_match/candidate_set_creation.py | 1 + src/ferc1_eia_match/config.py | 1 + src/ferc1_eia_match/metrics/blocking.py | 1 + src/ferc1_eia_match/metrics/compare.py | 1 + src/ferc1_eia_match/metrics/compute.py | 1 + test/conftest.py | 1 + test/integration/inputs_test.py | 1 + test/integration/jupyter_notebooks_test.py | 1 + test/unit/name_cleaner_test.py | 1 + 10 files changed, 10 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 0219efd..1057c39 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ """Configuration file for the Sphinx documentation builder.""" + # # This file only contains a selection of the most common options. For a full # list see the documentation: diff --git a/src/ferc1_eia_match/candidate_set_creation.py b/src/ferc1_eia_match/candidate_set_creation.py index 2ebab87..321d284 100644 --- a/src/ferc1_eia_match/candidate_set_creation.py +++ b/src/ferc1_eia_match/candidate_set_creation.py @@ -1,4 +1,5 @@ """Blocking methods to create a candidate set of tuples matches.""" + import logging import faiss diff --git a/src/ferc1_eia_match/config.py b/src/ferc1_eia_match/config.py index ea13d74..5d70968 100644 --- a/src/ferc1_eia_match/config.py +++ b/src/ferc1_eia_match/config.py @@ -1,4 +1,5 @@ """Helper functions to compute and output various metrics.""" + import json from pathlib import Path diff --git a/src/ferc1_eia_match/metrics/blocking.py b/src/ferc1_eia_match/metrics/blocking.py index eaa6d23..b8da445 100644 --- a/src/ferc1_eia_match/metrics/blocking.py +++ b/src/ferc1_eia_match/metrics/blocking.py @@ -1,4 +1,5 @@ """Helper functions to compute and output various metrics.""" + from __future__ import annotations import importlib.resources diff --git a/src/ferc1_eia_match/metrics/compare.py b/src/ferc1_eia_match/metrics/compare.py index 04fb40e..cea44b9 100644 --- a/src/ferc1_eia_match/metrics/compare.py +++ b/src/ferc1_eia_match/metrics/compare.py @@ -1,4 +1,5 @@ """Script to compare sets of metrics.""" + import argparse import sys from pathlib import Path diff --git a/src/ferc1_eia_match/metrics/compute.py b/src/ferc1_eia_match/metrics/compute.py index 9fab090..224d0b1 100644 --- a/src/ferc1_eia_match/metrics/compute.py +++ b/src/ferc1_eia_match/metrics/compute.py @@ -1,4 +1,5 @@ """Script to execute experiments and save metrics.""" + import argparse import logging import sys diff --git a/test/conftest.py b/test/conftest.py index 086553b..5d43d39 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,4 +1,5 @@ """PyTest configuration module. Defines useful fixtures, command line args.""" + import json import logging import os diff --git a/test/integration/inputs_test.py b/test/integration/inputs_test.py index 8459378..4cfdfcc 100644 --- a/test/integration/inputs_test.py +++ b/test/integration/inputs_test.py @@ -1,4 +1,5 @@ """Test that the EIA and FERC data inputs can be generated.""" + import pytest import sqlalchemy as sa diff --git a/test/integration/jupyter_notebooks_test.py b/test/integration/jupyter_notebooks_test.py index 02a2cf1..9c51e7e 100644 --- a/test/integration/jupyter_notebooks_test.py +++ b/test/integration/jupyter_notebooks_test.py @@ -1,4 +1,5 @@ """Test that jupyter notebooks can be run.""" + from pathlib import Path import nbformat diff --git a/test/unit/name_cleaner_test.py b/test/unit/name_cleaner_test.py index 61e308e..baa5c94 100644 --- a/test/unit/name_cleaner_test.py +++ b/test/unit/name_cleaner_test.py @@ -1,4 +1,5 @@ """A dummy unit test so pytest has something to do.""" + import logging import pandas as pd