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

[LLSC-29] Add basic readme and pre-commit #3

Merged
merged 10 commits into from
Nov 3, 2024
Merged

Conversation

Mayank808
Copy link
Collaborator

Notion ticket link

Set up linting and formatting pre-commit hooks

Implementation description

  • Setup basic pre-commit hooks commented out ones that are currently breaking/causing issues will look into them later/if needed
  • Wrote quick startup guide in readme for backend

Steps to test

  1. run ./setup.sh and ensure pre-commit is installed properly (script can be removed and just add the pip install/brew install to read me)
  2. pre-commit run or git commit -m/git push on changes
  3. should lint and refactor changes if needed. (will fail if it requires any change)

Checklist

  • My PR name is descriptive and in imperative tense
  • My commit messages are descriptive and in imperative tense. My commits are atomic and trivial commits are squashed or fixup'd into non-trivial commits
  • I have run the appropriate linter(s)
  • I have requested a review from the PL, as well as other devs who have background knowledge on this PR or who will be building on top of this PR

@Mayank808 Mayank808 requested a review from mslwang October 7, 2024 22:42
.pre-commit-config.yaml Outdated Show resolved Hide resolved
backend/README.md Outdated Show resolved Hide resolved
backend/README.md Show resolved Hide resolved
setup.sh Outdated Show resolved Hide resolved
update_secret_files.py Show resolved Hide resolved
@Mayank808 Mayank808 requested a review from mslwang October 8, 2024 00:30
Copy link
Collaborator

@mslwang mslwang left a comment

Choose a reason for hiding this comment

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

LGTM functionality wise
Precommit hook rejecting
Precommit hook accepting

Would be great to just add some extra touches to the README, then we can merge.

backend/README.md Show resolved Hide resolved
backend/README.md Outdated Show resolved Hide resolved
backend/README.md Show resolved Hide resolved
@EdmondLi1 EdmondLi1 self-requested a review November 3, 2024 21:04
Copy link
Collaborator

@EdmondLi1 EdmondLi1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Mayank808 Mayank808 merged commit 78a092a into main Nov 3, 2024
1 check passed
@Mayank808 Mayank808 deleted the mayank-pre-commit-hook branch November 3, 2024 21:12
Mayank808 added a commit that referenced this pull request Nov 3, 2024
## Notion ticket link
<!-- Please replace with your ticket's URL -->
[Set up linting and formatting pre-commit
hooks](https://www.notion.so/uwblueprintexecs/Set-up-linting-and-formatting-pre-commit-hooks-11410f3fb1dc80d6bd9ae7469cc0f283?pvs=4)


<!-- Give a quick summary of the implementation details, provide design
justifications if necessary -->
## Implementation description
* Setup basic pre-commit hooks commented out ones that are currently
breaking/causing issues will look into them later/if needed
* Wrote quick startup guide in readme for backend

<!-- What should the reviewer do to verify your changes? Describe
expected results and include screenshots when appropriate -->
## Steps to test
1. run ./setup.sh and ensure pre-commit is installed properly (script
can be removed and just add the pip install/brew install to read me)
2. pre-commit run or git commit -m/git push on changes
3. should lint and refactor changes if needed. (will fail if it requires
any change)


## Checklist
- [x] My PR name is descriptive and in imperative tense
- [x] My commit messages are descriptive and in imperative tense. My
commits are atomic and trivial commits are squashed or fixup'd into
non-trivial commits
- [x] I have run the appropriate linter(s)
- [x] I have requested a review from the PL, as well as other devs who
have background knowledge on this PR or who will be building on top of
this PR

---------

Co-authored-by: Matthew Wang <[email protected]>
@mslwang mslwang changed the title Add basic readme and pre-commit [LLSC-29] Add basic readme and pre-commit Nov 8, 2024
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.

3 participants