Skip to content

Commit 054640d

Browse files
Clarify intent of Tool.name in docstring (#1317)
1 parent b2d7ce0 commit 054640d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/usethis/_tool/base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ def name(self) -> str:
5656
5757
It is assumed that this name is also the name of the Python package associated
5858
with the tool; if not, make sure to override methods which access this property.
59+
60+
This is the display-friendly (e.g. brand compliant) name of the tool, not the
61+
name of a CLI command, etc. Pay mind to the correct capitalization.
62+
63+
For example, the tool named `ty` has a name of `ty`, not `Ty` or `TY`.
64+
Import Linter has a name of `Import Linter`, not `import-linter`.
5965
"""
6066

6167
@abstractmethod

0 commit comments

Comments
 (0)