Open RayBB opened 1 month ago
@scottbarnes any opinions on this one?
I just cloned from git@github.com:internetarchive/openlibrary.git
, made a branch, made a change, and committed it, and pre-commit
doesn't look to run by default, so I think if we remove this, then ruff
will only run for people who use pre-commit
, and that's not everyone, so we may end up more likely to commit code that won't pass the linting.
If that's correct, and that's a big if, then I think we should probably keep this workflow around.
@scottbarnes I think you're talking about the pre-commit hooks running locally on your machine. This file should not impact them because it is only used by GitHub Actions. https://github.com/internetarchive/openlibrary/blob/master/.github/workflows/ruff.yml
However, we have a different github CI that runs pre-commit which in turn runs ruff for us and commits the results to the branch. So I think that this ruff workflow is no longer needed as a separate workflow.
Problem
I think we can remove
.github/workflows/ruff.yml
now that we have ruff running in pre-commit on each PR anyway.Any reason to keep this around?
Evidence / Screenshot
Relevant URL(s)
Reproducing the bug
Context
Notes from this Issue's Lead
Proposal & constraints
Related files
https://github.com/internetarchive/openlibrary/blob/master/.github/workflows/ruff.yml
Stakeholders
CC: @scottbarnes