1414class MyBakebook (PythonLibSpace ):
1515 ci : bool = False
1616
17- def lint (self , ctx : Context ) -> None :
18- ctx .run ("uv run python scripts/sort_tags.py" )
19- ctx .run ("uv run python scripts/check_tag_problems.py" )
20- super ().lint (ctx )
17+ def lint (self ) -> None :
18+ self . ctx .run ("uv run python scripts/sort_tags.py" )
19+ self . ctx .run ("uv run python scripts/check_tag_problems.py" )
20+ super ().lint ()
2121
22- def test (self , ctx : Context ) -> None :
22+ def test (self ) -> None :
2323 tests_paths : list [str ] = ["tests/" , "leetcode/" ]
24- self ._test (ctx , tests_paths = tests_paths )
24+ self ._test (tests_paths = tests_paths )
2525
2626 def is_problem_exist (self , problem : str ) -> Path :
2727 problem_path = Path (f"leetcode/{ problem } " )
@@ -32,10 +32,10 @@ def is_problem_exist(self, problem: str) -> Path:
3232 return problem_path
3333
3434 @command ("p-test" , help = "Run problem specific tests" )
35- def problem_test (self , ctx : Context , problem : problem_option = PROBLEM ):
35+ def problem_test (self , problem : problem_option = PROBLEM ):
3636 problem_path = self .is_problem_exist (problem )
3737 tests_path = str (problem_path / "test_solution.py" )
38- self ._test (ctx , tests_paths = tests_path , verbose = True , coverage_report = False )
38+ self ._test (tests_paths = tests_path , verbose = True , coverage_report = False )
3939
4040 @command ("p-gen" , help = "Generate specific problem" )
4141 def problem_gen (
0 commit comments