Skip to content

Commit

Permalink
Refactor: split into parsers and models modules
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhed committed Dec 19, 2023
1 parent 3556fa3 commit 48a06ed
Show file tree
Hide file tree
Showing 6 changed files with 697 additions and 645 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ all: clean blackcheck test build
test:
pytest -v
python -m doctest src/mijnbib/mijnbibliotheek.py
python -m doctest src/mijnbib/parsers.py
python -m doctest src/mijnbib/models.py

black:
isort --skip-glob="**/venv*" \
Expand Down
5 changes: 3 additions & 2 deletions src/mijnbib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# So user can do e.g.
# from mijnbib import MijnBibliotheek, Loan

from mijnbib.mijnbibliotheek import Account, Loan, MijnBibliotheek, Reservation
from mijnbib.plugin_errors import (
from .mijnbibliotheek import MijnBibliotheek
from .models import Account, Loan, Reservation
from .plugin_errors import (
AccessError,
AuthenticationError,
CanNotConnectError,
Expand Down
Loading

0 comments on commit 48a06ed

Please sign in to comment.