ruff check

built-in
0.0% Savings
0 Commands
0 Tokens saved
2 Tests

Install

tokf install 72eb39a325028374ec27113061ee7106411f2a31c5805649caf619445e3d273b
Safety checks passed

Filter definition

command = "ruff check"
strip_ansi = true
skip = [
  "^\\s*$",
]

[on_success]
output = "ok ✓ ruff check: no issues"

[on_failure]
output = "{output}"

Examples

ruff errors show file paths and rule codes ~88 tokens → ~88 tokens
Raw output
src/main.py:1:8: F401 [*] `os` imported but unused
src/main.py:2:8: F401 `sys` imported but unused
src/utils.py:10:89: E501 Line too long (100 > 88)
src/api/handler.py:5:1: F401 [*] `json` imported but unused
src/api/handler.py:12:5: E712 Comparison to `True` should be `cond is True` or `if cond:`
Found 5 errors.
[*] 2 fixable with the `--fix` option.
Filtered output
src/main.py:1:8: F401 [*] `os` imported but unused
src/main.py:2:8: F401 `sys` imported but unused
src/utils.py:10:89: E501 Line too long (100 > 88)
src/api/handler.py:5:1: F401 [*] `json` imported but unused
src/api/handler.py:12:5: E712 Comparison to `True` should be `cond is True` or `if cond:`
Found 5 errors.
[*] 2 fixable with the `--fix` option.
clean ruff check shows ok ~4 tokens → ~7 tokens
Raw output
All checks passed!
Filtered output
ok ✓ ruff check: no issues
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters