Repository navigation
Conversation
The import is unused (F401), which fails the ruff and pyright ratchet on main and on every PR based on it. dmsh_entry.py is a chain file: dmsh_chain.h is regenerated (0aa68e19c9a7 -> 784765eda608).
3 tasks done
Owner
|
Design verdict: Already covered on main; closing. Should it exist? Yes: an unused import should be removed, and main has already removed it. 78671525 removed the unused dmsh_fetch import. Current dmsh_entry.py imports confirm it is absent. Reapplying this older patch/header would add no missing lint repair. Review base: 82c354b0.
|
This file contains hidden or 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
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.
What and why
dmsh_entry.pyimportsdmsh_fetchand no longer uses it (the only other mention is in a docstring), so the "ruff and pyright (ratchet)" check fails on main and on every PR based on it:dmsh_fetchimported but unused (F401). The import is dropped.dmsh_entry.pyis part of the translation chain, so its bytes are in the chain id:dmsh_chain.py --headermovesDMSH_CHAINfrom7c609af36b0f(main now) to2d8bdd6f4d09, and every shader library is built again. The translation itself is unchanged. If a chain change is about to land anyway, this can ride along with it and this PR can be closed.Checked
ruff check --select F401 dm/gfx/tools/dmsh_entry.pyreports 1 error on main and none with the change; thetest_*.pyunderdm/gfx/testsanddm/tools/teststhat importdmsh_entrypass (test_dmsh_pairs.pywithDM_GAME=0400486024DEC000).regress.py checkreport; the output of the translation is not changed, only the chain id. Not checked: pyright, the fulllint_python.py(pyright is not installed here); no shader build.Docs
dmsh_chain.py --headerwas run anddm/gfx/nvn/dmsh_chain.his part of the change