forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backport: merge bitcoin#24778, #24766, #24849, #24844, #24853, #24895, #24802, #24932, partial bitcoin#23212, #23462 (lint backports) #6428
Open
kwvg
wants to merge
14
commits into
dashpay:develop
Choose a base branch
from
kwvg:shtopy
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+980
−732
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kwvg
force-pushed
the
shtopy
branch
2 times, most recently
from
November 24, 2024 12:06
544bc0d
to
94b14ea
Compare
…linters reverts: - 3e6385e (only `run-lint-format-strings.py`)
GitHub Actions run for 4aaa314, https://github.com/kwvg/dash/actions/runs/11996049561. |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional Information
Dependency for backport: merge bitcoin#24794, #23524, #24902, #24915, #24916, #24929, #23506, #24840, #24982, partial bitcoin#25288 (lint backports: part 2) #6429
Even though support for Python scripts was extended to
lint-all
in bitcoin#24762 (dash#6023), the changes needed were not extended to parallelized linting added in dash#4637.This meant the match expression didn't include non-shell scripts and additionally,
parallel
interpreted all scripts as Bash scripts. This has been resolved in this PR.bitcoin#23212 is partial as
--ignore-missing-imports
has not been removed frommypy
arguments as the version ofmypy
used in the PR (0.910) isn't syntax aware toimports
like here and here.Lint errors:
And upgrading to the latest version of
mypy
used upstream (1.4.1, source) brings syntax awareness but new errors.Lint errors:
bitcoin#23462 is partial as neither
SC2046
norSC2086
have been enabled. This backport was done for the sole purpose of backporting changes to shell scripts that would be replaced with their Python counterparts in later backports.The necessary changes needed to enable
SC2046
andSC2086
will be done in a later pull request.actions/checkout
does not do a full clone nor tracks the default branch by default. It is already documented thatgit merge-base
(used bylint-git-commit-check.py
andlint-whitespace.py
, source) doesn't play nice with it (see actions/checkout#423).No such issue exists on GitLab (build), but it remains present on GitHub Actions (build). This PR does a full clone, switches to the
develop
branch, then switches back to the intended commit, as a workaround (see working build here)Changes to
run-lint-format-strings.py
made in dash#4807 were reverted as they were interfering withlint-format-strings.py
Lint error:
Breaking Changes
None expected.
Checklist