Skip to content

ci: improve Ruff workflow configuration - #15716

Open
Purvi1558 wants to merge 1 commit into
TheAlgorithms:masterfrom
Purvi1558:improve-ruff-zizmor
Open

Purvi1558 wants to merge 1 commit into
TheAlgorithms:masterfrom
Purvi1558:improve-ruff-zizmor

Conversation

@Purvi1558

Copy link
Copy Markdown

Describe your change

Improved the Ruff GitHub Actions workflow by:

  • Adding a descriptive job name.
  • Adding concurrency controls to cancel outdated workflow runs.
  • Restricting workflow permissions to contents: read.

Checklist

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms include at least one URL that points to Wikipedia or another similar explanation.
  • If this pull request resolves one or more open issues, then the description above includes the issue number(s) with a closing keyword: Fixes Optimize the linting's rules with RUff and Zizmor #15696.

Fixes #15696

@Purvi1558
Purvi1558 requested a review from cclauss as a code owner November 12, 2026 01:39
@algorithms-keeper algorithms-keeper Bot added awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files labels Nov 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize the linting's rules with RUff and Zizmor

1 participant