Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
obar1 committed Apr 4, 2024
1 parent 22e9be4 commit 62a71cf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 31 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ format:
lint:
pylint --disable=C0116,C0115,W0702,C0114,C0301,C0103,C0209,R0913,R0902,R0903,E1101,W0612,W0718,R0801,W0150,W0613 zero_to_one_hundred

mypy:
mypy zero_to_one_hundred

refactor: format lint mypy
refactor: format lint
16 changes: 0 additions & 16 deletions mypy.ini

This file was deleted.

1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ pylint==2.17.5
pytest-cov==4.0.0
pytest==7.4.0
pytest-watch==4.2.0
mypy==1.8.0
types-PyYAML==6.0.12.12
21 changes: 11 additions & 10 deletions zero_to_one_hundred/tests_sb/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def test_asMarkDown(get_config_map, persist_fs, process_fs, http_url, isbn):
assert str_relaxed(actual.asMarkDown()) == str_relaxed(
"""
{
"isbn":"9780135956977",
"pages_perc":"n/a",
"isbn":"9780135956977",<br/>
"pages_perc":"n/a",<br/>
"url":"https://learning.oreilly.com/library/view/the-pragmatic-programmer/9780135956977/"
}
"""
Expand All @@ -54,9 +54,10 @@ def test_asMarkDown(get_config_map, persist_fs, process_fs, http_url, isbn):
assert str_relaxed(actual.asMarkDown()) == str_relaxed(
"""
{
"abc": "123", "def": "456",
"isbn":"9780135956977",
"pages_perc":"n/a",
"abc": "123",<br/>
"def": "456",<br/>
"isbn":"9780135956977",<br/>
"pages_perc":"n/a",<br/>
"url":"https://learning.oreilly.com/library/view/the-pragmatic-programmer/9780135956977/"
}
"""
Expand All @@ -75,11 +76,11 @@ def test_asMarkDown(get_config_map, persist_fs, process_fs, http_url, isbn):
assert str_relaxed(actual.asMarkDown()) == str_relaxed(
"""
{
"abc": "123",
"isbn":"9780135956977",
"page_curr": 10,
"page_tot": 100,
"pages_perc":"10.0%",
"abc": "123", <br/>
"isbn":"9780135956977",<br/>
"page_curr": 10,<br/>
"page_tot": 100,<br/>
"pages_perc":"10.0%",<br/>
"url":"https://learning.oreilly.com/library/view/the-pragmatic-programmer/9780135956977/"
}
"""
Expand Down

0 comments on commit 62a71cf

Please sign in to comment.