pre-commit hooks for Cookbooks?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Review the .pre-commit-config.yaml in the cookbook-template and compare it with the pre-commit.ci setup in Project Pythia Foundations. Check how existing Cookbook repositories were copied from the template and inspect the Contributor's Guide references. Done requires choosing one of the three consistency options and carrying it through for the affected repositories, with any needed guidance documented.
Written by the indexing model from the issue text.
Description
I'm confused about the current state of our reliance on pre-commit for code quality.
In Foundations we have pre-commit.ci running on every PR. This service runs as a GitHub App linked to the Foundations repo.
I don't think we've ever turned this on for any Cookbook repos.
However as of https://github.com/ProjectPythia/cookbook-template/pull/103 the Template repo has a .pre-commit-config.yaml, and pre-commit was run locally once on the repo.
All subsequent copies of the Template have the .pre-commit-config.yaml file included, but we're using it for anything.
It would be great to get this cleaned up for consistency. I see three options:
- Get rid of the .precommit-config.yaml file, don't enforce any code style
- Add guidance to our Contributor's Guide on how to install and run pre-commit locally on a Cookbook repo
- Switch on the pre-commit.ci service for all existing Cookbook repos, and add guidance on how to do this for new Cookbooks.
Option 3 results in the strictest adherence to consistent code quality and formatting, with some potential for user confusion.
Option 1 is the easiest.
Option 2 is a wishy-washy bad compromise in my opinion.
@ProjectPythia/infrastructure thoughts?
- Dominant language
- Jupyter Notebook
- Stars
- 25
- Forks
- 29
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ProjectPythia/cookbook-template
-
infrastructure
ProjectPythia/cookbook-template#247 · 11 comments · 1 assignee ·
-
infrastructure
Difficulty 3/5 1-2 days Newbie friendliness 35/100
ProjectPythia/cookbook-template#241 · 1 comment ·
-
infrastructure
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
ProjectPythia/cookbook-template#183 · 2 comments ·
-
infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
ProjectPythia/cookbook-template#175 · 8 comments ·
All issues in ProjectPythia/cookbook-template
Similar issues
-
kind/bug Ubuntu 24
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kubernetes-sigs/kubespray#13532 ·
-
Needs Design Priority: Wishlist
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
elementary/flatpak-platform#253 ·
-
tagbot-manual
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100