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

Speed up hatch run lint in CI #818

Open
antonymilne opened this issue Oct 18, 2024 · 0 comments
Open

Speed up hatch run lint in CI #818

antonymilne opened this issue Oct 18, 2024 · 0 comments
Labels
hacktoberfest A month-long celebration of all things open-source Nice to have 🍒 Possible projects for a rainy day

Comments

@antonymilne
Copy link
Contributor

Our linting GitHub workflow is very slow because it re-installs all the pre-commit environments every time it runs. It block anything because it's not the slowest job we have but it would still be nice to speed up because it should be easy to do so by making a cache in one of two ways:

In both cases we need to think about what the cache key should be. Just hashing .pre-commit-config.yaml isn't enough since changes to linter config in pyproject.toml should also invalidate the cache.

@antonymilne antonymilne added Nice to have 🍒 Possible projects for a rainy day hacktoberfest A month-long celebration of all things open-source labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest A month-long celebration of all things open-source Nice to have 🍒 Possible projects for a rainy day
Projects
None yet
Development

No branches or pull requests

1 participant