diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000..7cf6db96a6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 \ No newline at end of file diff --git a/README.rst b/README.rst index 5725a94190..e6454d97ff 100644 --- a/README.rst +++ b/README.rst @@ -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
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: