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

Incorporate ruff linter into CI pipeline #2311

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

cutwater
Copy link
Contributor

The ruff tool is a linting and formatting tool, that replaces most of the functionality of the flake8 including most popular plugins, isort and black.

This commit adds ruff into development and CI pipeline with minimal configuration. This enables only basic checks that will be expanded in future aiming to replace flake8 with plugins and isort.

@github-actions github-actions bot added backport-4.9 This PR should be backported to stable-4.9 (2.4) backport-4.10 labels Oct 14, 2024
@cutwater cutwater removed backport-4.9 This PR should be backported to stable-4.9 (2.4) backport-4.10 labels Oct 14, 2024
The ruff tool is a linting and formatting tool, that replaces
most of the functionality of the flake8 including most popular plugins,
isort and black.

This commit adds ruff into development and CI pipeline with minimal
configuration. This enables only basic checks that will be expanded in
future aiming to replace flake8 with plugins and isort.

Fixed warnings:

11      F401    [*] unused-import
 3      F841    [*] unused-variable
 2      F811    [*] redefined-while-unused
 1      E741    [ ] ambiguous-variable-name
@cutwater cutwater enabled auto-merge (squash) October 14, 2024 13:44
Copy link

sonarcloud bot commented Oct 14, 2024

@cutwater cutwater merged commit 28314c5 into ansible:master Oct 14, 2024
16 of 21 checks passed
@cutwater cutwater deleted the feature/ruff-linter branch October 14, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants