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 markers to linter tests, move linter imports #25

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Feb 8, 2024

Test markers can be used to easily (de-)select tests, and colcon exposes mechanisms to do so. Linters are a category of tests that are commonly called out.

Additionally, if we move the imports for some of our single-purpose tests into the test function, we can avoid installing the linter dependencies entirely. This is a common case in platform packaging, where linter errors are not actionable and the dependencies are not typically installed.

There are also some other superficial consistency alignment changes in these tests to make them look more like the other colcon packages.

Test markers can be used to easily (de-)select tests, and colcon exposes
mechanisms to do so. Linters are a category of tests that are commonly
called out.

Additionally, if we move the imports for some of our single-purpose
tests into the test function, we can avoid installing the linter
dependencies entirely. This is a common case in platform packaging, where
linter errors are not actionable and the dependencies are not typically
installed.
@cottsay cottsay requested a review from Briancbn February 8, 2024 03:27
@cottsay cottsay self-assigned this Feb 8, 2024
Copy link
Collaborator

@Briancbn Briancbn left a comment

Choose a reason for hiding this comment

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

Thanks for keeping this up-to-date with other colcon packages.

@cottsay cottsay merged commit 44a0986 into master Feb 8, 2024
20 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/workflow-call branch February 8, 2024 03:37
@Briancbn Briancbn added this to the 0.3.0 milestone Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants