Repository navigation
Conversation
Now handels local deps and IREE deps including the full package name within the same conversion block
| # LLVMTableGen still need to be included. | ||
| return "" | ||
| elif not target.startswith("//iree"): | ||
| if target.startswith(":") and target.endswith(("_gen","Gen")): |
There was a problem hiding this comment.
nit: space after comma
pylint should do this for you
http://google.github.io/styleguide/pyguide.html#21-lint
http://google.github.io/styleguide/pyguide.html#36-whitespace
There was a problem hiding this comment.
Thanks for providing the references. Pylint is not really happy with the current scripts anyway ;)
There was a problem hiding this comment.
I have my editor set up to run pylint/clang-format/etc. on file save so I usually don't have to care about indentation, spacing, trailing spaces/newlines, etc. There could be some differences between the formatting that the Google configuration of those tools uses and the global defaults though.
This case might even be handled by our import automation, but we aim to keep the merged code as close to the code in the PR as possible.
There was a problem hiding this comment.
Yes, I agree that the code should keep close. I'll will be more careful next time.
| # marked as ALWAYSLINK. | ||
| # This drops deps in the local namespace ending with '_gen' and 'Gen' | ||
| target = "" | ||
| elif not target.startswith(("//iree",":")): |
_genorGen