diff --git a/newsfragments/263.internal.rst b/newsfragments/263.internal.rst new file mode 100644 index 00000000..77175333 --- /dev/null +++ b/newsfragments/263.internal.rst @@ -0,0 +1 @@ +Correct booleans in ``pyproject.toml`` and add test for the presence of the ``eth_utils.__version__`` attribute diff --git a/pyproject.toml b/pyproject.toml index 6968868f..16f3e6db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,32 +1,32 @@ [tool.autoflake] -remove_all_unused_imports = "True" +remove_all_unused_imports = true exclude = "__init__.py" [tool.isort] -combine_as_imports = "True" +combine_as_imports = true extra_standard_library = "pytest" force_grid_wrap = 1 -force_sort_within_sections = "True" +force_sort_within_sections = true known_third_party = "hypothesis,pytest" known_first_party = "eth_utils" multi_line_output = 3 profile = "black" [tool.mypy] -check_untyped_defs = "True" -disallow_incomplete_defs = "True" -disallow_untyped_defs = "True" -disallow_any_generics = "True" -disallow_untyped_calls = "True" -disallow_untyped_decorators = "True" -disallow_subclassing_any = "True" -ignore_missing_imports = "True" -strict_optional = "True" -strict_equality = "True" -warn_redundant_casts = "True" -warn_return_any = "True" -warn_unused_configs = "True" -warn_unused_ignores = "True" +check_untyped_defs = true +disallow_incomplete_defs = true +disallow_untyped_defs = true +disallow_any_generics = true +disallow_untyped_calls = true +disallow_untyped_decorators = true +disallow_subclassing_any = true +ignore_missing_imports = true +strict_optional = true +strict_equality = true +warn_redundant_casts = true +warn_return_any = true +warn_unused_configs = true +warn_unused_ignores = true [tool.pydocstyle] @@ -63,7 +63,7 @@ add-ignore = "D200,D203,D204,D205,D212,D302,D400,D401,D412,D415" [tool.pytest.ini_options] addopts = "-v --showlocals --durations 10" -xfail_strict = "True" +xfail_strict = true log_format = "%(levelname)8s %(asctime)s %(filename)20s %(message)s" log_date_format = "%m-%d %H:%M:%S" diff --git a/tests/core/test_import.py b/tests/core/test_import.py deleted file mode 100644 index c1c32cbe..00000000 --- a/tests/core/test_import.py +++ /dev/null @@ -1,2 +0,0 @@ -def test_import(): - import eth_utils # noqa: F401 diff --git a/tests/core/test_import_and_version.py b/tests/core/test_import_and_version.py new file mode 100644 index 00000000..613235c0 --- /dev/null +++ b/tests/core/test_import_and_version.py @@ -0,0 +1,4 @@ +def test_import(): + import eth_utils + + assert isinstance(eth_utils.__version__, str)