Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 24, 2024
1 parent 21e89a1 commit 9be54fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions datahugger/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion datahugger/config.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/test_repositories.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 9be54fd

Please sign in to comment.