Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork214
Add pre-commit with powrap#608
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
03577a2
feat: add pre-commit to format po files
Shen-KuanLing9d795d5
Merge branch '3.12' into feat/pre-commit-with-powrap
Shen-KuanLing983c541
Merge branch '3.12' into feat/pre-commit-with-powrap
Shen-KuanLing0844973
feat: use powrap native pre-commit hook
Shen-KuanLing157de66
PR reviewer suggestions
Shen-KuanLingcc866b1
chore(readme): add installation cmd for pre-commit
mattwang44File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
12 changes: 12 additions & 0 deletions.pre-commit-config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Install the pre-commit hooks below with | ||
# 'pre-commit install' | ||
# Auto-update the version of the hooks with | ||
# 'pre-commit autoupdate' | ||
repos: | ||
- repo: https://git.afpy.org/AFPy/powrap | ||
# there's no release tag in repo, use the latest commit hash id instead | ||
rev: a34a9fed116d24562fbe4bb8d456ade85f056c36 | ||
hooks: | ||
- id: powrap |
5 changes: 5 additions & 0 deletionsREADME.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -89,6 +89,11 @@ the PSF for inclusion in the documentation. | ||
brew install gettext | ||
brew link gettext --force | ||
- 安裝 pre-commit 自動在 commit 時檢查 ``.po`` 檔格式。 | ||
.. code-block:: bash | ||
pip install pre-commit | ||
pre-commit install | ||
mattwang44 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
在進行任何動作以前,你必須在 GitHub 上 fork 此專案(按下右上角的 ``Fork`` | ||
按鈕),這樣會把整個專案複製一份到你的 GitHub 帳號底下,你可以對這個 fork | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.