Skip to content

Replace black and flake with ruff - #197

Merged
dralley merged 1 commit into
pulp:mainfrom
philnewm:change-lint-test-to-ruff
Jun 26, 2026
Merged

Replace black and flake with ruff#197
dralley merged 1 commit into
pulp:mainfrom
philnewm:change-lint-test-to-ruff

Conversation

@philnewm

@philnewm philnewm commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

Fixes pulp/pulp_deb#1471


black --check --diff .

if [[ -f flake8.cfg ]];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Assuming flake8 commands should get replaced too as they also cause errors otherwise

/opt/oci_env/base/container_scripts/run_lint_tests.sh: line 23: flake8: command not found

flake8
fi
ruff format --check --diff
ruff check

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Commands are based on the usage in pulp_deb CI

@dralley
dralley merged commit 4874105 into pulp:main Jun 26, 2026
3 checks passed
@philnewm
philnewm deleted the change-lint-test-to-ruff branch June 26, 2026 16:57
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.

Liniting won't start in local testing

2 participants