From: Edward Yang Date: Mon, 1 Apr 2019 01:56:12 +0000 (-0700) Subject: Provide flake8 install instructions. (#18629) X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~519 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35bc83524d8754d99a59d7312fd674c7e796cc6c;p=platform%2Fupstream%2Fpytorch.git 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 --- 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