From 91e24ebd735f71a6ce9fd353a56525d7b304a6ea Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 28 Aug 2022 14:32:35 -0400 Subject: [PATCH] More README --- README.md | 71 ++++++++++++++++++++++++++++++++++++++----------- src/bin/ruff.rs | 4 +-- 2 files changed, 58 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index f275e5ffd0..7ad8e70cd8 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ An extremely fast Python linter, written in Rust. Major features: - 10-100x faster than your current linter. +- Installable via `pip`. - Python 3.10 compatibility. - [ESLint](https://eslint.org/docs/latest/user-guide/command-line-interface#caching)-inspired cache semantics. - [TypeScript](https://www.typescriptlang.org/docs/handbook/configuring-watch.html)-inspired `--watch` semantics. @@ -39,7 +40,7 @@ ruff path/to/code/*.py You can run `ruff` in `--watch` mode to automatically re-run on-change: ```shell -ruff --watch path/to/code/ +ruff path/to/code/ --watch ``` ## Configuration @@ -57,14 +58,48 @@ select = [ ] ``` -## Development - -`ruff` is written in Rust: +Alternatively, on the command-line: ```shell +ruff path/to/code/ --select F401 F403 +``` + +See `ruff --help` for more: + +```shell +ruff +A Python linter written in Rust + +USAGE: + ruff [OPTIONS] ... + +ARGS: + ... + +OPTIONS: + -e, --exit-zero Exit with status code "0", even upon detecting errors + -h, --help Print help information + --ignore ... Comma-separated list of error codes to ignore + -n, --no-cache Disable cache reads + -q, --quiet Disable all logging (but still exit with status code "1" upon + detecting errors) + --select