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

Function pascal_case

scripts/add_plugin.py:37–39  ·  view source on GitHub ↗

Convert from snake-case to PascalCase.

(linter_name: str)

Source from the content-addressed store, hash-verified

35
36
37def pascal_case(linter_name: str) -> str:
38 """Convert from snake-case to PascalCase."""
39 return "".join(word.title() for word in linter_name.split("-"))
40
41
42def get_indent(line: str) -> str:

Callers 1

mainFunction · 0.70

Calls 2

splitMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected