Skip to content

Commit

Permalink
Add pre-commit with powrap (#608)
Browse files Browse the repository at this point in the history
* feat: add pre-commit to format po files

* feat: use powrap native pre-commit hook

* PR reviewer suggestions

* chore(readme): add installation cmd for pre-commit

---------

Co-authored-by: Wei-Hsiang (Matt) Wang <[email protected]>
  • Loading branch information
Shen-KuanLing and mattwang44 authored Sep 4, 2023
1 parent 05f7c46 commit af9f3ef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
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 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
在進行任何動作以前,你必須在 GitHub 上 fork 此專案(按下右上角的 ``Fork``
按鈕),這樣會把整個專案複製一份到你的 GitHub 帳號底下,你可以對這個 fork
Expand Down

0 comments on commit af9f3ef

Please sign in to comment.