From 78131a53f09474e2498ef77511be10958ee957ce Mon Sep 17 00:00:00 2001 From: Milan Lukac Date: Mon, 29 Apr 2024 19:37:17 -0700 Subject: [PATCH] Update autoflake precommit --- .pre-commit-config.yaml | 4 ++-- .../contracts/verification/test_contract_duplicate.py | 1 - .../tests/contracts/verification/test_contract_schema.py | 7 +------ .../test_contract_user_defined_metric_sql_query.py | 1 - 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 626f481a5..8662dcef9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,8 +18,8 @@ repos: - id: debug-statements - id: detect-private-key - id: end-of-file-fixer - - repo: https://github.com/humitos/mirrors-autoflake.git - rev: v1.1 + - repo: https://github.com/PyCQA/autoflake + rev: v2.2.1 hooks: - id: autoflake args: ["--in-place", "--remove-all-unused-imports"] diff --git a/soda/contracts/tests/contracts/verification/test_contract_duplicate.py b/soda/contracts/tests/contracts/verification/test_contract_duplicate.py index f20e0cc25..50a1a4f7c 100644 --- a/soda/contracts/tests/contracts/verification/test_contract_duplicate.py +++ b/soda/contracts/tests/contracts/verification/test_contract_duplicate.py @@ -5,7 +5,6 @@ from soda.contracts.contract import ( CheckOutcome, ContractResult, - DuplicateCheck, NumericMetricCheck, NumericMetricCheckResult, ) diff --git a/soda/contracts/tests/contracts/verification/test_contract_schema.py b/soda/contracts/tests/contracts/verification/test_contract_schema.py index 8eb8da64e..224c8e14b 100644 --- a/soda/contracts/tests/contracts/verification/test_contract_schema.py +++ b/soda/contracts/tests/contracts/verification/test_contract_schema.py @@ -4,12 +4,7 @@ from helpers.test_table import TestTable from soda.execution.data_type import DataType -from soda.contracts.contract import ( - CheckOutcome, - CheckResult, - ContractResult, - SchemaCheckResult, -) +from soda.contracts.contract import CheckOutcome, ContractResult, SchemaCheckResult logger = logging.getLogger(__name__) diff --git a/soda/contracts/tests/contracts/verification/test_contract_user_defined_metric_sql_query.py b/soda/contracts/tests/contracts/verification/test_contract_user_defined_metric_sql_query.py index 2115e9b21..9e991014b 100644 --- a/soda/contracts/tests/contracts/verification/test_contract_user_defined_metric_sql_query.py +++ b/soda/contracts/tests/contracts/verification/test_contract_user_defined_metric_sql_query.py @@ -6,7 +6,6 @@ CheckOutcome, ContractResult, NumericMetricCheckResult, - UserDefinedMetricSqlExpressionCheck, UserDefinedMetricSqlQueryCheck, )