Skip to content

Commit

Permalink
fix toml bools and add version test
Browse files Browse the repository at this point in the history
  • Loading branch information
pacrob committed Jan 9, 2024
1 parent 063af98 commit efa03a8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
1 change: 1 addition & 0 deletions newsfragments/56.internal.rst
@@ -0,0 +1 @@
Fixed booleans in ``pyproject.toml`` and added a test for the presence of the ``eth_typing.__version__`` attribute
36 changes: 18 additions & 18 deletions 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_typing"
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]
Expand Down Expand Up @@ -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"

Expand Down
4 changes: 3 additions & 1 deletion tests/core/test_import.py
@@ -1,2 +1,4 @@
def test_import():
import eth_typing # noqa: F401
import eth_typing

assert isinstance(eth_typing.__version__, str)

0 comments on commit efa03a8

Please sign in to comment.