"docs/vscode:/vscode.git/clone" did not exist on "7396d8f6818bbbbadedc0b034e60726dddee0b4e"
Unverified Commit 71b27a00 authored by ahmadsharif1's avatar ahmadsharif1 Committed by GitHub
Browse files

Updated doc to add dependencies for testing (#8198)


Co-authored-by: default avatarAhmad Sharif <ahmads@fb.com>
parent f52fd335
......@@ -34,7 +34,9 @@ clear and has sufficient instructions to be able to reproduce the issue.
### Dependencies
Start by installing the **nightly** build of PyTorch following the [official
instructions](https://pytorch.org/get-started/locally/).
instructions](https://pytorch.org/get-started/locally/). Note that the official
instructions may ask you to install torchvision itself. If you are doing development
on torchvision, you should not install prebuilt torchvision packages.
**Optionally**, install `libpng` and `libjpeg-turbo` if you want to enable
support for
......@@ -69,10 +71,10 @@ building GPU support by setting `FORCE_CUDA=1` environment variable, which is us
We don't officially support building from source using `pip`, but _if_ you do, you'll need to use the
`--no-build-isolation` flag.
Other development dependencies include:
#### Other development dependencies (some of these are needed to run tests):
```
pip install flake8 typing mypy pytest pytest-mock scipy
pip install expecttest flake8 typing mypy pytest pytest-mock scipy
```
## Development Process
......@@ -145,6 +147,8 @@ mypy --config-file mypy.ini
### Unit tests
Before running tests make sure to install [test dependencies](#other-development-dependencies-some-of-these-are-needed-to-run-tests).
If you have modified the code by adding a new feature or a bug-fix, please add unit tests for that. To run a specific
test:
```bash
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment