-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Consider task lint is an alias for ruff.
from doit_api import cmdtask
@cmdtask
def ruff():
"""Run linter (ruff)."""
return 'ruff *.py'
@cmdtask
def lint(task_dep=['ruff']): # or task_dep=[ruff]
"""Alias for ruff."""
#pass
#return None
return []
Or
lint = ruff
Or?
The first does not run the dependent task:
$ doit lint
. lint =>
The second reports:
$ doit lint
ERROR: Task names must be unique. ruff
Metadata
Metadata
Assignees
Labels
No labels