Added argfile test and documentation (#7138)

Co-authored-by: konsti <konstin@mailbox.org>
This commit is contained in:
Nicholas Grisafi 2023-09-05 02:13:58 -07:00 committed by GitHub
parent 10a8e4a225
commit 40ee4909b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -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: