Skip to content

Commit

Permalink
correct format of pyproject.toml bools and add test for presence of _…
Browse files Browse the repository at this point in the history
…_version__
  • Loading branch information
pacrob committed Jan 10, 2024
1 parent a560e99 commit d84374b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
1 change: 1 addition & 0 deletions newsfragments/263.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct booleans in ``pyproject.toml`` and add test for the presence of the ``eth_utils.__version__`` attribute
36 changes: 18 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
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
2 changes: 0 additions & 2 deletions tests/core/test_import.py

This file was deleted.

4 changes: 4 additions & 0 deletions tests/core/test_import_and_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def test_import():
import eth_utils

assert isinstance(eth_utils.__version__, str)

0 comments on commit d84374b

Please sign in to comment.