Skip to content

fix: resolve pylint CI failure — exit code 30 on build (3.10)#13

Draft
walker8088 with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-failing-github-actions-job
Draft

fix: resolve pylint CI failure — exit code 30 on build (3.10)#13
walker8088 with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown

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 objects
    • board_pos()board_pospos_to_screen() returns a tuple, not a Pos callable; removing the erroneous call
    • Added encoding='utf-8' to open() calls; removed redundant f"..." prefix on a plain string; fixed bare open().read() resource leak
    • Added targeted # pylint: disable for pygame (not installable in CI) and demo-specific patterns
  • src/cchess/move.py: Removed ... from stub body (W2301/W0107); docstring alone is sufficient.

  • src/cchess/io_xqf.py: Added invalid-name and too-few-public-methods to module-level disable — XQF binary protocol parsing intentionally uses Hungarian notation variable names.

- 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 build (3.10) Jul 10, 2026
Copilot AI requested a review from walker8088 July 10, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants