@@ -26,13 +26,13 @@ def list_commands(self, ctx: Context):
2626
2727@cli .command (help = "Check file(s)" )
2828def check (
29- paths : Annotated [List [Path ], typer .Argument (exists = True )],
30- exclude : Annotated [
31- Optional [list [str ]], typer .Option (help = "Glob patterns for exclusion" )
32- ] = None ,
33- quiet : Annotated [
34- bool , typer .Option ("--quiet" , help = "No output when successful" )
35- ] = False ,
29+ paths : Annotated [List [Path ], typer .Argument (exists = True )],
30+ exclude : Annotated [
31+ Optional [list [str ]], typer .Option (help = "Glob patterns for exclusion" )
32+ ] = None ,
33+ quiet : Annotated [
34+ bool , typer .Option ("--quiet" , help = "No output when successful" )
35+ ] = False ,
3636):
3737 if exclude :
3838 Configuration .excludes .extend (exclude )
@@ -41,12 +41,12 @@ def check(
4141
4242@cli .command (help = "Scan a codebase" )
4343def scan (
44- path : Annotated [
45- Path , typer .Argument (exists = True , file_okay = False , help = "Codebase root" )
46- ] = Path ("." ),
47- exclude : Annotated [
48- Optional [list [str ]], typer .Option (help = "Glob patterns for exclusion" )
49- ] = None
44+ path : Annotated [
45+ Path , typer .Argument (exists = True , file_okay = False , help = "Codebase root" )
46+ ] = Path ("." ),
47+ exclude : Annotated [
48+ Optional [list [str ]], typer .Option (help = "Glob patterns for exclusion" )
49+ ] = None ,
5050):
5151 if exclude :
5252 Configuration .excludes .extend (exclude )
@@ -55,14 +55,14 @@ def scan(
5555
5656@cli .command (help = "Show report for codebase" )
5757def report (
58- path : Annotated [
59- Path , typer .Argument (exists = True , file_okay = False , help = "Codebase root" )
60- ] = Path ("." ),
61- full : Annotated [bool , typer .Option ("--full" , help = "Show full report" )] = False ,
62- totals : Annotated [bool , typer .Option ("--totals" , help = "Only show totals" )] = False ,
63- fmt : Annotated [
64- ReportFormat , typer .Option ("--format" , help = "Output format" )
65- ] = ReportFormat .text ,
58+ path : Annotated [
59+ Path , typer .Argument (exists = True , file_okay = False , help = "Codebase root" )
60+ ] = Path ("." ),
61+ full : Annotated [bool , typer .Option ("--full" , help = "Show full report" )] = False ,
62+ totals : Annotated [bool , typer .Option ("--totals" , help = "Only show totals" )] = False ,
63+ fmt : Annotated [
64+ ReportFormat , typer .Option ("--format" , help = "Output format" )
65+ ] = ReportFormat .text ,
6666):
6767 report_command (path , full , totals , fmt )
6868
@@ -75,15 +75,15 @@ def _version_callback(show: bool):
7575
7676@cli .callback ()
7777def main (
78- verbose : Annotated [
79- Optional [bool ], typer .Option ("--verbose" , "-v" , help = "Verbose output" )
80- ] = False ,
81- version : Annotated [
82- Optional [bool ],
83- typer .Option (
84- "--version" , "-V" , help = "Show version" , callback = _version_callback
85- ),
86- ] = None ,
78+ verbose : Annotated [
79+ Optional [bool ], typer .Option ("--verbose" , "-v" , help = "Verbose output" )
80+ ] = False ,
81+ version : Annotated [
82+ Optional [bool ],
83+ typer .Option (
84+ "--version" , "-V" , help = "Show version" , callback = _version_callback
85+ ),
86+ ] = None ,
8787):
8888 """Code Limit: Your refactoring alarm."""
8989 if verbose :
0 commit comments