diff --git a/Makefile b/Makefile index 888cef1..187abf2 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 33462d9..0000000 --- a/mypy.ini +++ /dev/null @@ -1,16 +0,0 @@ -[mypy] -ignore_errors = False -ignore_missing_imports = True - -[mypy-zero_to_one_hundred.runner] -ignore_errors = True - -[mypy-zero_to_one_hundred.tests.*] -ignore_errors = True - -[mypy-zero_to_one_hundred.tests_sb.*] -ignore_errors = True - -[mypy-safaribooks.*] -ignore_errors = True - \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt index f421417..df4e888 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -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 \ No newline at end of file diff --git a/zero_to_one_hundred/tests_sb/test_metadata.py b/zero_to_one_hundred/tests_sb/test_metadata.py index facc65f..2157850 100644 --- a/zero_to_one_hundred/tests_sb/test_metadata.py +++ b/zero_to_one_hundred/tests_sb/test_metadata.py @@ -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",
+ "pages_perc":"n/a",
"url":"https://learning.oreilly.com/library/view/the-pragmatic-programmer/9780135956977/" } """ @@ -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",
+ "def": "456",
+ "isbn":"9780135956977",
+ "pages_perc":"n/a",
"url":"https://learning.oreilly.com/library/view/the-pragmatic-programmer/9780135956977/" } """ @@ -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",
+ "isbn":"9780135956977",
+ "page_curr": 10,
+ "page_tot": 100,
+ "pages_perc":"10.0%",
"url":"https://learning.oreilly.com/library/view/the-pragmatic-programmer/9780135956977/" } """