[robotpy] Run black on robotpy files (#9017)

This piggy-backs off #8362. `wpiformat` will handle all the non-python
files (C++ trailing spaces in yaml files, etc), and the robotpy files
(guarded by being under src/main/python or src/test/python) will be
handled by black only.
This commit is contained in:
PJ Reiniger
2026-06-27 15:13:13 -04:00
committed by GitHub
parent a5d66fb4ff
commit fd25e8666f
5 changed files with 47 additions and 12 deletions

View File

@@ -1,9 +1,9 @@
import sys
import tomli
def load_project_names(toml_filename, project_type):
with open(toml_filename, "rb") as f:
data = tomli.load(f)
@@ -14,6 +14,7 @@ def load_project_names(toml_filename, project_type):
return contents
def main():
output_file = "robotpyExamples/example_projects.bzl"
@@ -22,7 +23,7 @@ def main():
if len(sys.argv) == 2:
output_file = sys.argv[1]
with open(output_file, "w") as f:
f.write(contents)