Skip to content

Commit 788150b

Browse files
Test sync of OTHER_TOOLS list for pyproject.toml
1 parent b0dbf09 commit 788150b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/usethis/_tool/impl/pyproject_toml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Dependency,
2222
)
2323

24-
OTHER_TOOLS = [
24+
OTHER_TOOLS: list[Tool] = [
2525
CodespellTool(),
2626
CoverageTool(),
2727
DeptryTool(),

tests/usethis/_tool/impl/test_pyproject_toml.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
class TestOtherTools:
1010
def test_in_sync_with_all_tools(self):
11-
assert set(OTHER_TOOLS) | {PyprojectTOMLTool()} == set(ALL_TOOLS)
11+
assert {tool.name.lower() for tool in OTHER_TOOLS} | {
12+
PyprojectTOMLTool().name
13+
} == {tool.name.lower() for tool in ALL_TOOLS}
1214

1315

1416
class TestPyprojectTOMLTool:

0 commit comments

Comments
 (0)