mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-03 15:12:09 +00:00
Black dependency created a dependabot warning and couldn't be bumped since it collided with pathspec dependencies. Since ruff can also format, black is not needed. But we now have these small format changes, mostly in test files
15 lines
422 B
Python
15 lines
422 B
Python
"""
|
|
Prints the list of supported languages, for use in the project.yml template
|
|
"""
|
|
|
|
from solidlsp.ls_config import Language
|
|
|
|
if __name__ == "__main__":
|
|
lang_strings = sorted([l.value for l in Language])
|
|
max_len = max(len(s) for s in lang_strings)
|
|
fmt = f"%-{max_len + 2}s"
|
|
for i, l in enumerate(lang_strings):
|
|
if i % 5 == 0:
|
|
print("\n# ", end="")
|
|
print(" " + fmt % l, end="")
|