From e29e67f4f041e78ef85305e26793b4111cba1314 Mon Sep 17 00:00:00 2001 From: pacrob <5199899+pacrob@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:22:54 -0600 Subject: [PATCH] update isort config and multi-platform grepping in Makefile --- Makefile | 2 +- pyproject.toml | 26 ++++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 4d04dfc9..8ed201bf 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ notes: check-bump validate-newsfragments release: check-bump clean # require that upstream is configured for ethereum/ - @git remote -v | grep -E "upstream\tgit@github.com:ethereum/.git \(push\)|upstream\thttps://(www.)?github.com/ethereum/ \(push\)" + @git remote -v | grep "upstream[[:space:]]git@github.com:ethereum/.git (push)\|upstream[[:space:]]https://github.com/ethereum/ (push)" # verify that docs build correctly ./newsfragments/validate_files.py is-empty make build-docs diff --git a/pyproject.toml b/pyproject.toml index f244df2c..e46b7434 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,28 +1,30 @@ [tool.autoflake] -remove_all_unused_imports = true exclude = "__init__.py" +remove_all_unused_imports = true [tool.isort] combine_as_imports = true extra_standard_library = "pytest" force_grid_wrap = 1 force_sort_within_sections = true -known_third_party = "hypothesis,pytest" +honor_noqa = true known_first_party = "" +known_third_party = "hypothesis" multi_line_output = 3 profile = "black" +use_parentheses = true [tool.mypy] check_untyped_defs = true -disallow_incomplete_defs = true -disallow_untyped_defs = true disallow_any_generics = true +disallow_incomplete_defs = true +disallow_subclassing_any = true disallow_untyped_calls = true disallow_untyped_decorators = true -disallow_subclassing_any = true +disallow_untyped_defs = true ignore_missing_imports = true -strict_optional = true strict_equality = true +strict_optional = true warn_redundant_casts = true warn_return_any = true warn_unused_configs = true @@ -63,18 +65,18 @@ add-ignore = "D200,D203,D204,D205,D212,D302,D400,D401,D412,D415" [tool.pytest.ini_options] addopts = "-v --showlocals --durations 10" -xfail_strict = true -log_format = "%(levelname)8s %(asctime)s %(filename)20s %(message)s" log_date_format = "%m-%d %H:%M:%S" +log_format = "%(levelname)8s %(asctime)s %(filename)20s %(message)s" +xfail_strict = true [tool.towncrier] # Read https://github.com/ethereum//blob/main/newsfragments/README.md for instructions -package = "" -filename = "docs/release_notes.rst" directory = "newsfragments" -underlines = ["-", "~", "^"] -title_format = " v{version} ({project_date})" +filename = "docs/release_notes.rst" issue_format = "`#{issue} /issues/{issue}>`__" +package = "" +title_format = " v{version} ({project_date})" +underlines = ["-", "~", "^"] [[tool.towncrier.type]] directory = "breaking"