Skip to content

Conversation

@fanquake
Copy link
Member

@fanquake fanquake commented Oct 7, 2021

This is #22844 with issues addressed, and two additional commits. One to move to the latest mypy version in the CI, and another to remove what is just pointless duplication from the test README. There's no need to relist package versions and install instructions (meaning 2x the work when changing anything), when you can just link to 04_install.sh which has the versions used and pip invocations to install them.

@practicalswift
Copy link
Contributor

Concept ACK

The more high quality automated review we can get prior to manual review the better.

@DrahtBot
Copy link
Contributor

DrahtBot commented Oct 7, 2021

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

@laanwj
Copy link
Member

laanwj commented Oct 15, 2021

Python lints are failing:

test/functional/test_runner.py:43: error: Module has no attribute "getwindowsversion"  [attr-defined]
Found 1 error in 1 file (checked 216 source files)
^---- failure generated from test/lint/lint-python.sh

Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK after

diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py
index c5f08b27f2..d6f61bfbff 100755
--- a/test/functional/test_runner.py
+++ b/test/functional/test_runner.py
@@ -40,7 +40,7 @@ except UnicodeDecodeError:
     CROSS = "x "
     CIRCLE = "o "

-if os.name != 'nt' or sys.getwindowsversion() >= (10, 0, 14393):
+if os.name != 'nt' or sys.getwindowsversion() >= (10, 0, 14393): #type:ignore
     if os.name == 'nt':
         import ctypes
         kernel32 = ctypes.windll.kernel32  # type: ignore

because getwindowsversion is only available in Windows.

fanquake and others added 4 commits October 16, 2021 09:14
@fanquake
Copy link
Member Author

Tested ACK after

Thanks for the review @promag. Taken the suggestion.

@promag
Copy link
Contributor

promag commented Oct 16, 2021

ACK

@practicalswift
Copy link
Contributor

cr ACK a46f71b

@maflcko maflcko merged commit 3bf40d0 into bitcoin:master Oct 17, 2021
@fanquake fanquake deleted the 22844_fixedup branch October 17, 2021 10:11
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Oct 17, 2021
a46f71b lint: enable mypy checking for missing imports (josibake)
22e6526 lint mypy 0.910 (fanquake)
6ae9c2e lint: install pyzmq (22.3.0) into linter environment (josibake)
b93e229 doc: remove pointlessly duplicated linter version / install info (fanquake)

Pull request description:

  This is bitcoin#22844 with issues addressed, and two additional commits. One to move to the latest mypy version in the CI, and another to remove what is just pointless duplication from the test README. There's no need to relist package versions and install instructions (meaning 2x the work when changing anything), when you can just link to `04_install.sh` which has the versions used and pip invocations to install them.

ACKs for top commit:
  practicalswift:
    cr ACK a46f71b

Tree-SHA512: 2900dea3901d03a846dc1ea912f217d152e803845516c7d941745ec1291d145590cd4bf2ddc497f7cf628119ba9905d7b1531836062aa85b384e39cf436f62c6
@bitcoin bitcoin locked and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants