@@ -95,7 +95,7 @@ def get_managed_files(self) -> list[Path]:
9595 """Get (relative) paths to files managed by the tool."""
9696 return []
9797
98- def get_pyproject_id_keys (self ) -> list [list [str ]]:
98+ def get_managed_pyproject_keys (self ) -> list [list [str ]]:
9999 """Get keys for any pyproject.toml sections only used by this tool (not shared)."""
100100 return []
101101
@@ -118,7 +118,7 @@ def is_used(self) -> bool:
118118 for file in self .get_managed_files ():
119119 if file .exists () and file .is_file ():
120120 return True
121- for id_keys in self .get_pyproject_id_keys ():
121+ for id_keys in self .get_managed_pyproject_keys ():
122122 if do_id_keys_exist (id_keys ):
123123 return True
124124 for dep in self .get_dev_deps (unconditional = True ):
@@ -208,7 +208,7 @@ def remove_pyproject_configs(self) -> None:
208208 # Collect all keys to remove
209209 keys_to_remove = [
210210 config .id_keys for config in self .get_pyproject_configs ()
211- ] + self .get_pyproject_id_keys ()
211+ ] + self .get_managed_pyproject_keys ()
212212
213213 # Try to remove the first key to trigger the message
214214 first_removal = True
@@ -273,7 +273,7 @@ def get_pre_commit_repos(self) -> list[LocalRepo | UriRepo]:
273273 )
274274 ]
275275
276- def get_pyproject_id_keys (self ) -> list [list [str ]]:
276+ def get_managed_pyproject_keys (self ) -> list [list [str ]]:
277277 return [["tool" , "codespell" ]]
278278
279279 def get_managed_files (self ) -> list [Path ]:
@@ -335,7 +335,7 @@ def get_pyproject_configs(self) -> list[PyProjectConfig]:
335335 ),
336336 ]
337337
338- def get_pyproject_id_keys (self ) -> list [list [str ]]:
338+ def get_managed_pyproject_keys (self ) -> list [list [str ]]:
339339 return [["tool" , "coverage" ]]
340340
341341 def get_managed_files (self ) -> list [Path ]:
@@ -372,7 +372,7 @@ def get_pre_commit_repos(self) -> list[LocalRepo | UriRepo]:
372372 )
373373 ]
374374
375- def get_pyproject_id_keys (self ) -> list [list [str ]]:
375+ def get_managed_pyproject_keys (self ) -> list [list [str ]]:
376376 return [["tool" , "deptry" ]]
377377
378378 def get_bitbucket_steps (self ) -> list [BitbucketStep ]:
@@ -453,7 +453,7 @@ def get_pyproject_configs(self) -> list[PyProjectConfig]:
453453 )
454454 ]
455455
456- def get_pyproject_id_keys (self ) -> list [list [str ]]:
456+ def get_managed_pyproject_keys (self ) -> list [list [str ]]:
457457 return [["tool" , "pyproject-fmt" ]]
458458
459459 def get_bitbucket_steps (self ) -> list [BitbucketStep ]:
@@ -535,7 +535,7 @@ def get_pyproject_configs(self) -> list[PyProjectConfig]:
535535 def get_associated_ruff_rules (self ) -> list [str ]:
536536 return ["PT" ]
537537
538- def get_pyproject_id_keys (self ) -> list [list [str ]]:
538+ def get_managed_pyproject_keys (self ) -> list [list [str ]]:
539539 return [["tool" , "pytest" ]]
540540
541541 def get_managed_files (self ) -> list [Path ]:
@@ -639,7 +639,7 @@ def get_pyproject_configs(self) -> list[PyProjectConfig]:
639639 )
640640 ]
641641
642- def get_pyproject_id_keys (self ) -> list [list [str ]]:
642+ def get_managed_pyproject_keys (self ) -> list [list [str ]]:
643643 return [["tool" , "ruff" ]]
644644
645645 def get_managed_files (self ) -> list [Path ]:
0 commit comments