Pre-commit flake8/clang-tidy (#15102)
authorZachary DeVito <zdevito@fb.com>
Wed, 12 Dec 2018 06:15:20 +0000 (22:15 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Dec 2018 06:18:18 +0000 (22:18 -0800)
commitb07ee44f401ea49ea72759bd6b309ac1184e08a6
treebfbeb6a28ae1f58d1d3d745f68a4f4e1b23c97b8
parentf8455ed754196cd554cbaaaaa440dd178383154d
Pre-commit flake8/clang-tidy (#15102)

Summary:
Provide a pre-commit hook that does flake8 and clang tidy checks. Enables the clang-tidy script to run in parallel to make it fast enough to be used in a pre-commit hook.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15102

Reviewed By: soumith

Differential Revision: D13429629

Pulled By: zdevito

fbshipit-source-id: bd52fe5652f29b033de8d9926d78350b2da4c2fc
CONTRIBUTING.md
tools/clang_tidy.py
tools/flake8_hook.py [new file with mode: 0755]
tools/git-pre-commit [new file with mode: 0755]