fix: resolve pylint CI failure — exit code 30 on build (3.10)#13
Draft
walker8088 with Copilot wants to merge 2 commits into
Draft
fix: resolve pylint CI failure — exit code 30 on build (3.10)#13walker8088 with Copilot wants to merge 2 commits into
build (3.10)#13walker8088 with Copilot wants to merge 2 commits into
Conversation
- bench.py: fix get_all_pieces() → get_all_fench_positions() (v2 API), add module docstring, update print message - demo/end_game_master.py: fix get_piece() → get_fench() API call, fix board_pos() not-callable error, add encoding='utf-8' to open() calls, fix redundant f-string, fix resource leak in open(), add targeted pylint disables for demo-specific issues - src/cchess/move.py: remove unnecessary ellipsis stub (W2301/W0107) - src/cchess/io_xqf.py: add invalid-name and too-few-public-methods to module-level pylint disable (XQF Hungarian notation is intentional)
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job 'build (3.10)'
fix: resolve pylint CI failure — exit code 30 on Jul 10, 2026
build (3.10)
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.
The
pylint $(git ls-files '*.py')step was exiting with code 30 (E+W+R+C messages) due to stale v1 API calls, a callable-tuple bug, and missing suppressions for intentional legacy patterns.Changes
bench.py:board.get_all_pieces()→board.get_all_fench_positions()(v2 API rename). Added module docstring.demo/end_game_master.py:board.get_piece(pos)→board.get_fench(pos); adapted callsites to work with fench strings instead of the old Piece objectsboard_pos()→board_pos—pos_to_screen()returns a tuple, not aPoscallable; removing the erroneous callencoding='utf-8'toopen()calls; removed redundantf"..."prefix on a plain string; fixed bareopen().read()resource leak# pylint: disablefor pygame (not installable in CI) and demo-specific patternssrc/cchess/move.py: Removed...from stub body (W2301/W0107); docstring alone is sufficient.src/cchess/io_xqf.py: Addedinvalid-nameandtoo-few-public-methodsto module-level disable — XQF binary protocol parsing intentionally uses Hungarian notation variable names.