@@ -42,11 +42,6 @@ def coverage(ctx: Context, args: str = "", *, html: bool = False):
4242 report_cov (ctx , html = html )
4343
4444
45- @task (optional = ["args" ], help = {"args" : "black additional arguments" })
46- def lint_black (ctx : Context , args : str = "." ):
47- args = args or "." # needed for hatch script
48- ctx .run ("black --version" , pty = use_pty )
49- ctx .run (f"black --check --diff { args } " , pty = use_pty )
5045
5146
5247@task (optional = ["args" ], help = {"args" : "ruff additional arguments" })
@@ -59,13 +54,12 @@ def lint_ruff(ctx: Context, args: str = "."):
5954@task (
6055 optional = ["args" ],
6156 help = {
62- "args" : "linting tools (black, ruff) additional arguments, typically a path" ,
57+ "args" : "linting tools (ruff) additional arguments, typically a path" ,
6358 },
6459)
6560def lintall (ctx : Context , args : str = "." ):
6661 """Check linting"""
6762 args = args or "." # needed for hatch script
68- lint_black (ctx , args )
6963 lint_ruff (ctx , args )
7064
7165
@@ -82,11 +76,6 @@ def checkall(ctx: Context, args: str = ""):
8276 check_pyright (ctx , args )
8377
8478
85- @task (optional = ["args" ], help = {"args" : "black additional arguments" })
86- def fix_black (ctx : Context , args : str = "." ):
87- """fix black formatting"""
88- args = args or "." # needed for hatch script
89- ctx .run (f"black { args } " , pty = use_pty )
9079
9180
9281@task (optional = ["args" ], help = {"args" : "ruff additional arguments" })
@@ -99,12 +88,11 @@ def fix_ruff(ctx: Context, args: str = "."):
9988@task (
10089 optional = ["args" ],
10190 help = {
102- "args" : "linting tools (black, ruff) additional arguments, typically a path" ,
91+ "args" : "linting tools ( ruff) additional arguments, typically a path" ,
10392 },
10493)
10594def fixall (ctx : Context , args : str = "." ):
10695 """Fix everything automatically"""
10796 args = args or "." # needed for hatch script
108- fix_black (ctx , args )
10997 fix_ruff (ctx , args )
11098 lintall (ctx , args )
0 commit comments