From 9be54fd2471a73bff751a2fc0e2f1531e4106c08 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:12:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- datahugger/base.py | 8 ++------ datahugger/config.py | 2 +- tests/test_repositories.toml | 1 - 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/datahugger/base.py b/datahugger/base.py index 8d80536..bfd1672 100644 --- a/datahugger/base.py +++ b/datahugger/base.py @@ -159,12 +159,8 @@ def download_file( if self.progress: print(f"{_format_filename(file_name)}: SKIPPED") return - - if ( - self.filter_files and - not re.match(self.filter_files, file_name) - ): - + + if self.filter_files and not re.match(self.filter_files, file_name): logging.info(f"Skipping file by filter {file_link}") if self.progress: print(f"{_format_filename(file_name)}: SKIPPED") diff --git a/datahugger/config.py b/datahugger/config.py index 9abfdb2..3ed877b 100644 --- a/datahugger/config.py +++ b/datahugger/config.py @@ -1,11 +1,11 @@ from datahugger.services import ArXivDataset from datahugger.services import B2shareDataset from datahugger.services import DataDryadDataset +from datahugger.services import DataEuropaDataset from datahugger.services import DataOneDataset from datahugger.services import DataverseDataset from datahugger.services import DjehutyDataset from datahugger.services import DSpaceDataset -from datahugger.services import DataEuropaDataset from datahugger.services import FigShareDataset from datahugger.services import GitHubDataset from datahugger.services import HuggingFaceDataset diff --git a/tests/test_repositories.toml b/tests/test_repositories.toml index 14ed4aa..04dc97b 100644 --- a/tests/test_repositories.toml +++ b/tests/test_repositories.toml @@ -121,4 +121,3 @@ files = "111609.xlsx" [[dataeuropa]] location = "https://data.europa.eu/data/datasets/65e092e4009f18f050b14216" files = "consolidation-wattzhub-schema-irve-dynamic-20240918-033000.csv" -