From 35bc83524d8754d99a59d7312fd674c7e796cc6c Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Sun, 31 Mar 2019 18:56:12 -0700 Subject: [PATCH] Provide flake8 install instructions. (#18629) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/18629 ghimport-source-id: 66a8871c56ffcfa7d4bfdf601e180fae99194e28 Stack from [ghstack](https://github.com/ezyang/ghstack): * **#18629 Provide flake8 install instructions.** * #18628 Delete duplicated technical content from contribution_guide.rst Signed-off-by: Edward Z. Yang Differential Revision: D14701004 fbshipit-source-id: b64292f0ef01b7894cf6b9ff8d5fd9e921c8d162 --- CONTRIBUTING.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 84d68eb..594e668 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -511,10 +511,13 @@ formatting and semantic checking of code. We provide a pre-commit git hook for performing these checks, before a commit is created: ```bash - pip install flake8-mypy ln -s ../../tools/git-pre-commit .git/hooks/pre-commit ``` +You'll need to install an appropriately configured flake8; see +[Lint as you type](https://github.com/pytorch/pytorch/wiki/Lint-as-you-type) +for documentation on how to do this. + ## Caffe2 notes In 2018, we merged Caffe2 into the PyTorch source repository. While the -- 2.7.4