Skip to content

style: add pre commit hook for style check and format#29

Merged
CritasWang merged 8 commits into
apache:mainfrom
lausannel:style/pre-commit-hook
Mar 24, 2025
Merged

style: add pre commit hook for style check and format#29
CritasWang merged 8 commits into
apache:mainfrom
lausannel:style/pre-commit-hook

Conversation

@lausannel

Copy link
Copy Markdown
Collaborator

This PR includes the following changes:

  1. Add pre-commit-config.yaml for pre commit hooks.
  2. Add github actions for style check
  3. Format the current styles

@lausannel

lausannel commented Mar 22, 2025

Copy link
Copy Markdown
Collaborator Author

Before committing, format the code by running the following commands:

pip install pre-commit
pre-commit run --all-files

Note: It may take some time to initially download and install pre-commit hooks, and for dotnet format to check and format the source files.

@lausannel lausannel requested a review from CritasWang March 23, 2025 18:30

@CritasWang CritasWang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM COOl

@CritasWang CritasWang merged commit 4c12f52 into apache:main Mar 24, 2025
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.

2 participants