[docs] rewrite (#5175)

This commit is contained in:
Richard Liaw
2019-08-05 23:33:14 -07:00
committed by Eric Liang
parent 5d7afe8092
commit a08ea09760
32 changed files with 1456 additions and 1627 deletions
+6 -6
View File
@@ -159,13 +159,13 @@ Linting
-------
**Running linter locally:** To run the Python linter on a specific file, run
something like ``flake8 ray/python/ray/worker.py``. You may need to first run
``pip install flake8``.
something like ``flake8 ray/python/ray/worker.py``. You may need to first run
``pip install flake8``.
**Autoformatting code**. We use ``yapf`` https://github.com/google/yapf for
linting, and the config file is located at ``.style.yapf``. We recommend
running ``scripts/yapf.sh`` prior to pushing to format changed files.
Note that some projects such as dataframes and rllib are currently excluded.
**Autoformatting code**. We use `yapf <https://github.com/google/yapf>`_ for
linting, and the config file is located at ``.style.yapf``. We recommend
running ``scripts/yapf.sh`` prior to pushing to format changed files.
Note that some projects such as dataframes and rllib are currently excluded.