mirror of https://github.com/astral-sh/ruff
Add `ruff .` to documentation (#2307)
This commit is contained in:
parent
1a32d873f0
commit
cec993aaa9
|
|
@ -206,9 +206,10 @@ apk add ruff
|
||||||
To run Ruff, try any of the following:
|
To run Ruff, try any of the following:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
ruff path/to/code/to/lint.py # Run Ruff over `lint.py`
|
ruff . # Lint all files in the current directory (and any subdirectories)
|
||||||
ruff path/to/code/ # Run Ruff over all files in `/path/to/code` (and any subdirectories)
|
ruff path/to/code/ # Lint 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 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:
|
You can run Ruff in `--watch` mode to automatically re-run on-change:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue