Skip to content

Commit

Permalink
(ja) Add documentation of pre-commit (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisuda committed Mar 23, 2020
1 parent 5eac4c0 commit 8b4494f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs.ja/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ WireCloud に何か貢献したいですか? **手助けをする方法は次
- [機能リクエスト](#feature-requests)
- [コントリビューションするコード](#contributing-code)
- [コード・ガイドライン](#code-guidelines)
- [コード・スタイル git hooks](#code-style-git-hooks)


<a name="using-the-issue-tracker"></a>
Expand Down Expand Up @@ -205,3 +206,24 @@ python manage.py runserver
- まれな場合を除いて、代替スタイルを提供せずにデフォルト `:focus` スタイル (例:`outline: none;` を経由) を
削除しないでください。詳細は、この [A11Yプロジェクトの記事](http://a11yproject.com/posts/never-remove-css-outlines/)
を参照してください

<a name="code-style-git-hooks"></a>
### コード・スタイル git hooks

WireCloud リポジトリは git hooks を使用して自動コード・スタイル検証を提供するための `pre-commit` 設定ファイルを提供
します。現在、この検証は JavaScript および Python コード用に構成されています。

最初に pre-commit をシステムにインストールする必要があります。詳細な情報については、[pre-commit](https://pre-commit.com/#intro)
Web サイトを参照できます。基本的なシナリオでは、次のコマンドを実行してインストールできます :

```
pip install pre-commit
```

インストールしたら、ターミナルで次を実行してワーキング・コピーに git hooks をインストールできます :

```
pre-commit install
```

これで、`git commit``pre-commit` が自動的に実行されます!
1 change: 1 addition & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ features.
- [Feature requests](#feature-requests)
- [Contributing code](#contributing-code)
- [Code Guidelines](#code-guidelines)
- [Code style git hooks](#code-style-git-hooks)

## Using the issue tracker

Expand Down

0 comments on commit 8b4494f

Please sign in to comment.