MCPcopy Create free account
hub / github.com/astral-sh/ruff / pascal_case

Function pascal_case

scripts/add_plugin.py:55–57  ·  view source on GitHub ↗

Convert from snake-case to PascalCase.

(linter_name: str)

Source from the content-addressed store, hash-verified

53
54
55def pascal_case(linter_name: str) -> str:
56 """Convert from snake-case to PascalCase."""
57 return "".join(word.title() for word in linter_name.split("-"))
58
59
60def get_indent(line: str) -> str:

Callers 1

mainFunction · 0.70

Calls 2

splitMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected