File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -271,8 +271,6 @@ max-complexity = 17
271271 # #################################################################################################
272272 " ANN001" , # Missing type annotation for function argument
273273 " ANN201" , # ANN201 Missing return type annotation for public function
274- " ANN202" , # Missing return type annotation for private function
275- " ANN204" , # Missing return type annotation for special method
276274]
277275
278276"tests/unit/sdk/test_client.py" = [
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ async def test_validate_sync_async(mock_gql_query_my_query) -> None:
4646 class IFCheckAsync (InfrahubCheck ):
4747 query = "my_query"
4848
49- async def validate (self , data : dict ):
49+ async def validate (self , data : dict ) -> None :
5050 self .log_error ("Not valid" )
5151
5252 class IFCheckSync (InfrahubCheck ):
5353 query = "my_query"
5454
55- def validate (self , data : dict ):
55+ def validate (self , data : dict ) -> None :
5656 self .log_error ("Not valid" )
5757
5858 check = await IFCheckAsync .init (branch = "main" )
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def test_active_branch_returns_correct_branch(temp_dir) -> None:
5050def test_initialize_repo_raises_error_on_failure (monkeypatch , temp_dir ) -> None :
5151 """Test that an error is raised if the repository cannot be initialized."""
5252
53- def mock_init (* args , ** kwargs ): # noqa: ANN002, ANN003
53+ def mock_init (* args , ** kwargs ) -> None : # noqa: ANN002, ANN003
5454 return None # Simulate failure
5555
5656 monkeypatch .setattr (Repo , "init" , mock_init )
You can’t perform that action at this time.
0 commit comments