Skip to content
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

Cleaned up the SConstruct files and added them to the 'make lint' target. #428

Merged
merged 8 commits into from
Sep 29, 2024

Conversation

zapta
Copy link
Collaborator

@zapta zapta commented Sep 28, 2024

The SConstruct files are now also subject to black, flake8, and pylint, similar to the apio .py files.

Fixed these warnings:

* line too long
* fixme
* imported by unused
* f-string is missing placeholders
apio/resources/ecp5/SConstruct:115:12: F523 '...'.format(...) has unused arguments at position(s): 1
apio/resources/gowin/SConstruct:112:12: F523 '...'.format(...) has unused arguments at position(s): 1, 2
…errors where fixed and/or supressed and the SConstruct files where added to the 'make lint' target.

E0611 and E1101 are due to the magic that scons does when running SConstruct, for example, improting methods and variables implicitly such that pylint is not aware of it. A partial workaround is to refer to them through the env object, for example 'env.GLOB()' instead of 'GLOB()' but it's not clear yet what is the best approach.
…o the common scons_util.py library. Behavior should be identical.
…attribure of he build target conditional on verbose all. An no change apio build now gives a nice "scons: `build' is up to date." message.
…verilator config file hardware.vlt to be sent to the verilog source scanner.
… for testing. This is a straight verilog project but can replaced later with a IceStudion version.
@Obijuan Obijuan merged commit cb11c3c into FPGAwars:develop Sep 29, 2024
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