@@ -50,12 +50,14 @@ def _lint(ctx: Context, args: str = "."):
5050
5151@task (optional = ["args" ], help = {"args" : "ruff additional arguments" })
5252def check_lint (ctx : Context , args : str = "." ):
53+ """check linting with ruff"""
5354 args = args or "." # needed for hatch script
5455 _lint (ctx , args )
5556
5657
5758@task (optional = ["args" ], help = {"args" : "ruff additional arguments" })
5859def fix_lint (ctx : Context , args : str = "." ):
60+ """fix linting issues with ruff"""
5961 args = args or "." # needed for hatch script
6062 _lint (ctx , f"--fix { args } " )
6163
@@ -75,19 +77,21 @@ def _format(ctx: Context, args: str = "."):
7577
7678@task (optional = ["args" ], help = {"args" : "ruff additional arguments" })
7779def check_format (ctx : Context , args : str = "." ):
80+ """check formatting with ruff"""
7881 args = args or "." # needed for hatch script
7982 _format (ctx , f"--check { args } " )
8083
8184
8285@task (optional = ["args" ], help = {"args" : "ruff additional arguments" })
8386def fix_format (ctx : Context , args : str = "." ):
87+ """fix formatting with ruff"""
8488 args = args or "." # needed for hatch script
8589 _format (ctx , args )
8690
8791
8892@task (optional = ["args" ], help = {"args" : "additional arguments" })
8993def check_all (ctx : Context , args : str = "" ):
90- """check static types"""
94+ """check linting, formatting and static types"""
9195 args = args or "." # needed for hatch script
9296 check_lint (ctx , args )
9397 check_format (ctx , args )
0 commit comments