Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ things get stuck, an `invoke clean` can help.

## Linting

Call `invoke linters` to run linters without also running tests.
Call `invoke linters` to run linters without also running tests.
Call `invoke linters-fix` to run linters and automatically fix issues.

## Documentation

Expand Down
5 changes: 5 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def linters(c):
run("ruff format --check --diff tests redis")
run("vulture redis whitelist.py --min-confidence 80")

@task
def linters_fix(c):
"""Run code linters and fix issues"""
run("ruff check --fix tests redis")
run("ruff format tests redis")

@task
def all_tests(c):
Expand Down