mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Added argfile test and documentation (#7138)
Co-authored-by: konsti <konstin@mailbox.org>
This commit is contained in:
parent
10a8e4a225
commit
40ee4909b5
2 changed files with 42 additions and 0 deletions
|
@ -7,6 +7,7 @@ ruff check . # Lint all files in the current directory (a
|
|||
ruff check path/to/code/ # Lint all files in `/path/to/code` (and any subdirectories)
|
||||
ruff check path/to/code/*.py # Lint all `.py` files in `/path/to/code`
|
||||
ruff check path/to/code/to/file.py # Lint `file.py`
|
||||
ruff check @file_paths.txt # Lint using an input file and treat its contents as command-line arguments (newline delimiter)
|
||||
```
|
||||
|
||||
You can run Ruff in `--watch` mode to automatically re-run on-change:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue