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

add flag fail_on_non_hdl_files to vivado.py #786

Merged
merged 2 commits into from Nov 7, 2022

Conversation

smenzel
Copy link
Contributor

@smenzel smenzel commented Jan 3, 2022

Fix #782 as suggested by @LarsAsplund

Copy link
Collaborator

@eine eine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@eine
Copy link
Collaborator

eine commented Jan 10, 2022

@smenzel, please check the format and linter errors.

@smenzel
Copy link
Contributor Author

smenzel commented Jan 10, 2022

I fixed 3 of the linting issues, however, I don't know how to fix this problem without changing unrelated code that I don't understand fully:
vunit/vivado/vivado.py:16:0: R0914: Too many local variables (16/15) (too-many-locals)

Also is it better to make a new commit for these review/linting changes or should I amend the previous commit (and force push in my branch) for a cleaner history?

@@ -13,11 +13,12 @@
from pathlib import Path


def add_from_compile_order_file(vunit_obj, compile_order_file, dependency_scan_defaultlib=True):
def add_from_compile_order_file(vunit_obj, compile_order_file, dependency_scan_defaultlib=True,
fail_on_non_hdl_files=True):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fail_on_non_hdl_files=True):
fail_on_non_hdl_files=True): # pylint: disable=too-many-locals

Should fix the pylint locals warning.

(I guess that in general, the fewer commits the better.)

@LarsAsplund LarsAsplund merged commit 95d039e into VUnit:master Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vivado compile order scanning fails with .coe or .mif dependencies
4 participants