Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add # flake8: noqa tag to generated files #174

Closed
wouterio opened this issue Jan 23, 2024 · 5 comments
Closed

Add # flake8: noqa tag to generated files #174

wouterio opened this issue Jan 23, 2024 · 5 comments
Assignees

Comments

@wouterio
Copy link

We're using the generate parameter library for a project that we build with colcon build --symlink-install. With --symlink-install the generated python files also show up in our source folder.

That means our code inspectors go through the generated py files as well. And those files don't pass the inspection. It would be nice if the generated py files would have the # flake8: noqa tag (and equivalents for other inspectors), so that the inspectors skip these files.

Or even better, it would be nice if the generate_parameter_module function gets a parameter tags: list[str] that callers can use to specify any of these tags themselves.

@Timple
Copy link
Contributor

Timple commented Feb 25, 2024

It's interesting that these files end up in your source folder right?

The files should be generated either directly in the install folder or in the build folder and the moved to the install folder.
Having symlinks shouldn't influence this. We use symlinks and I didn't notice any build artifacts thus far in our src folder.

@pac48
Copy link
Collaborator

pac48 commented Feb 25, 2024

symlinks

I believe this happens on ROS humble. I think the entire directory is symlinked, so there is not an easy way around it. @Timple Are you on a new version of ROS, maybe Iron?

@Timple
Copy link
Contributor

Timple commented Feb 26, 2024

Ah yes, we're running iron. So that might be different.

@wouterio
Copy link
Author

wouterio commented Feb 26, 2024 via email

@pac48
Copy link
Collaborator

pac48 commented Feb 26, 2024

This change has been merged

@pac48 pac48 closed this as completed Feb 26, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants