Skip to content

ci: improve FPGA file gen, fix Python black formatting - #140

Merged
phsauter merged 3 commits into
mainfrom
phsauter/ci-black-fpga
Oct 26, 2026
Merged

phsauter merged 3 commits into
mainfrom
phsauter/ci-black-fpga

Conversation

@phsauter

Copy link
Copy Markdown
Collaborator

The black linter/format rules were not actually applied because of a typo in the configuration toml. This fixes it and formats the scripts accordingly.
Additionally it makes the FPGA sources scripts fully reproducible by automatically adding the header as well.

run_xilinx.sh --flist writes the license header itself, so regenerating
add_sources.<board>.tcl no longer changes the tracked file. Regenerate both
board files with the current Bender, which drops the stale Package comments.
The include pattern in pyproject.toml had a doubled backslash, so black
matched no file and CI printed 'No Python files are present'. Fix it,
exclude the submodules, and format the files it now finds with black
(23.11.0 as used by rickstaa/action-black@v1, and 26.5.1 agree).
@phsauter
phsauter merged commit eabe025 into main Oct 26, 2026
8 checks passed
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.

1 participant