mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
[docs] rewrite (#5175)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user