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

Avocado: use avocado-static-checks #6026

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

clebergnu
Copy link
Contributor

This change introduces the use of the "avocado-static-checks" repo as a submodule, in lieu of the in-tree scripts being used.

The idea is to have a uniform code style across avocado and other projects such as avocado-vt and autils.

@clebergnu clebergnu added this to the 108 - Codename TBD milestone Sep 12, 2024
@clebergnu clebergnu self-assigned this Sep 12, 2024
Copy link
Contributor

@richtja richtja left a comment

Choose a reason for hiding this comment

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

Hi @clebergnu, the overall changes LGTM, but IIUIC avocado uses submodules now, therefore we need to update the contribution guide, because the Git workflow, will be different from now.

This enables the bare minimum of the avocado-static-checks usage, adds
the submodule switches the "isort" check, one of the most simplistic,
to the one provided by the avocado-static-checks repo.

Fixes: avocado-framework#5991
Signed-off-by: Cleber Rosa <[email protected]>
This replaces another one of the in-tree check scripts with the one
provided by avocado-static-checks.

Fixes: avocado-framework#5989
Signed-off-by: Cleber Rosa <[email protected]>
This switches to the script provided by the avocado-static-checks
repo, while using the local pylintrc configuration (set through the
use of "avocado-static-checks.conf".

In the near future, at least the "avocado/utils" directory needs to
made compliant with the standard pylint configuration provided by
avocado-static-checks, so that code can be easily moved to autils.

Fixes: avocado-framework#5990
Signed-off-by: Cleber Rosa <[email protected]>
@clebergnu
Copy link
Contributor Author

Hi @clebergnu, the overall changes LGTM, but IIUIC avocado uses submodules now, therefore we need to update the contribution guide, because the Git workflow, will be different from now.

Good point @richtja ! I've sent an update. Thanks for the review.

Copy link
Contributor

@richtja richtja left a comment

Choose a reason for hiding this comment

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

@clebergnu, LGTM, thank you for the updates.

@richtja richtja merged commit de6bef3 into avocado-framework:master Sep 17, 2024
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done 108
Development

Successfully merging this pull request may close these issues.

2 participants