ruff check
built-in 0.0% Savings
0 Commands
0 Tokens saved
2 Tests
Install
Safety checks passed
Filter definition
command = "ruff check"
description = "Strip blank lines; show lint errors with locations"
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