Skip to content

Commit

Permalink
Import local modules with from wikidata_dl import
Browse files Browse the repository at this point in the history
Add wikidata_dl/__init__.py and -p arg for mypy check
  • Loading branch information
yaph committed Nov 4, 2022
1 parent 1572106 commit 94a08b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ coverage:

checks:
flake8 wikidata_dl tests
mypy wikidata_dl
mypy -p wikidata_dl
pytest -s


Expand Down
2 changes: 1 addition & 1 deletion tests/test_wikidata.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
import wikidata
from wikidata_dl import wikidata

from pathlib import Path

Expand Down
Empty file added wikidata_dl/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions wikidata_dl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import argparse
import time

import wikidata

from pathlib import Path
from sys import exit

from wikidata_dl import wikidata


def main():
parser = argparse.ArgumentParser(description='Download data files from Wikidata for the given query.')
Expand Down
4 changes: 2 additions & 2 deletions wikidata_dl/wikidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import httpx
import wptools # type: ignore

import vocabulary

from collections.abc import Iterator
from datetime import datetime, timezone
from pathlib import Path

from dateutil.parser import parse as parsedate # type: ignore

from wikidata_dl import vocabulary


api_endpoint = 'https://query.wikidata.org/sparql'

Expand Down

0 comments on commit 94a08b8

Please sign in to comment.