From 6adddaa61eabb33fcf7cf02b2f6e26720adcd918 Mon Sep 17 00:00:00 2001 From: "Kerwin.Sun" Date: Wed, 2 Oct 2019 00:54:31 +0800 Subject: [PATCH] fix doc about pip install with test extra require --- CONTRIBUTING.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 4a0f8c5c5..42b9aa72f 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -98,16 +98,16 @@ this command whenever there are changes to JavaScript or LESS sources:: npm run build -**IMPORTANT:** Don't forget to run ``npm run build`` after switching branches. -When switching between branches of different versions (e.g. ``4.x`` and -``master``), run ``pip install -e .``. If you have tried the above and still +**IMPORTANT:** Don't forget to run ``npm run build`` after switching branches. +When switching between branches of different versions (e.g. ``4.x`` and +``master``), run ``pip install -e .``. If you have tried the above and still find that the notebook is not reflecting the current source code, try cleaning the repo with ``git clean -xfd`` and reinstalling with ``pip install -e .``. Development Tip """"""""""""""" -When doing development, you can use this command to automatically rebuild +When doing development, you can use this command to automatically rebuild JavaScript and LESS sources as they are modified:: npm run build:watch @@ -116,7 +116,7 @@ Git Hooks """"""""" If you want to automatically update dependencies and recompile JavaScript and -CSS after checking out a new commit, you can install post-checkout and +CSS after checking out a new commit, you can install post-checkout and post-merge hooks which will do it for you:: git-hooks/install-hooks.sh @@ -132,7 +132,7 @@ Python Tests Install dependencies:: - pip install -e .[test] + pip install -e '.[test]' To run the Python tests, use::