From f2392ada93d83e440475d6cf27f83de5d83c1f21 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Sat, 12 Nov 2016 23:46:44 +0800 Subject: [PATCH] Add pre-commit config file. * Add yapf hook to format python code. * Add Remove CRLF --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000..089e90c574f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +- repo: https://github.com/Lucas-C/pre-commit-hooks.git + sha: c25201a00e6b0514370501050cf2a8538ac12270 + hooks: + - id: remove-crlf +- repo: https://github.com/reyoung/mirrors-yapf.git + sha: v0.13.2 + hooks: + - id: yapf + -- GitLab