From cec993aaa9ca14dcceb6a101c2a89438f1bab7ab Mon Sep 17 00:00:00 2001 From: Chirag <76880977+chirag127@users.noreply.github.com> Date: Sun, 29 Jan 2023 01:23:11 +0530 Subject: [PATCH] Add `ruff .` to documentation (#2307) --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6b14edf325..4c149f89f8 100644 --- a/README.md +++ b/README.md @@ -206,9 +206,10 @@ apk add ruff To run Ruff, try any of the following: ```shell -ruff path/to/code/to/lint.py # Run Ruff over `lint.py` -ruff path/to/code/ # Run Ruff over all files in `/path/to/code` (and any subdirectories) -ruff path/to/code/*.py # Run Ruff over all `.py` files in `/path/to/code` +ruff . # Lint all files in the current directory (and any subdirectories) +ruff path/to/code/ # Lint all files in `/path/to/code` (and any subdirectories) +ruff path/to/code/*.py # Lint all `.py` files in `/path/to/code` +ruff path/to/code/to/file.py # Lint `file.py` ``` You can run Ruff in `--watch` mode to automatically re-run on-change: