[ci] Upgrade to wpiformat 2024.45 (#7326)

This commit is contained in:
Tyler Veness
2024-11-02 17:56:55 -07:00
committed by GitHub
parent eb8583596c
commit 7c91b81906
28 changed files with 35 additions and 87 deletions

View File

@@ -43,7 +43,7 @@ jobs:
distribution: 'temurin'
java-version: 17
- name: Install wpiformat
run: pip3 install wpiformat==2024.44
run: pip3 install wpiformat==2024.45
- name: Run wpiformat
run: wpiformat
- name: Run spotlessApply

View File

@@ -27,7 +27,7 @@ jobs:
with:
python-version: '3.12'
- name: Install wpiformat
run: pip3 install wpiformat==2024.44
run: pip3 install wpiformat==2024.45
- name: Run
run: wpiformat
- name: Check output
@@ -66,7 +66,7 @@ jobs:
with:
python-version: '3.12'
- name: Install wpiformat
run: pip3 install wpiformat==2024.44
run: pip3 install wpiformat==2024.45
- name: Create compile_commands.json
run: |
./gradlew generateCompileCommands -Ptoolchain-optional-roboRio

View File

@@ -3,9 +3,9 @@
# Copyright (c) FIRST and other WPILib contributors.
# Open Source Software; you can modify and/or share it under the terms of
# the WPILib BSD license file in the root directory of this project.
from pathlib import Path
import sys
import argparse
import sys
from pathlib import Path
def generate_usage_reporting(output_directory: Path, template_directory: Path):

View File

@@ -1,6 +1,6 @@
import os
import argparse
import binascii
import os
def generate_file(resource_file, output_file, prefix, namespace):

View File

@@ -3,11 +3,7 @@
import os
import shutil
from upstream_utils import (
comment_out_invalid_includes,
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, comment_out_invalid_includes, walk_cwd_and_copy_if
def remove_tag(f: str):

View File

@@ -4,11 +4,7 @@ import os
import re
import shutil
from upstream_utils import (
comment_out_invalid_includes,
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, comment_out_invalid_includes, walk_cwd_and_copy_if
def eigen_inclusions(dp, f):

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def copy_upstream_src(wpilib_root):

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def copy_upstream_src(wpilib_root):

View File

@@ -2,10 +2,7 @@
import os
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def copy_upstream_src(wpilib_root):

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def matches(dp, f, allowed_files):

View File

@@ -3,11 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_cwd_and_copy_if,
walk_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if, walk_if
EXCLUDED_FILES = [
"gtest_main.cc",

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def matches(dp, f, allowed_files):

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def matches(dp, f, allowed_files):

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_if,
Lib,
)
from upstream_utils import Lib, walk_if
def copy_upstream_src(wpilib_root):

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def copy_upstream_src(wpilib_root):

View File

@@ -3,11 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_if,
copy_to,
Lib,
)
from upstream_utils import Lib, copy_to, walk_if
def run_source_replacements(memory_files):

View File

@@ -4,10 +4,7 @@ import os
import shutil
import subprocess
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def copy_upstream_src(wpilib_root):

View File

@@ -3,11 +3,7 @@
import os
import shutil
from upstream_utils import (
copy_to,
walk_if,
Lib,
)
from upstream_utils import Lib, copy_to, walk_if
protobuf_lite_sources = set(
[

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
copy_to,
Lib,
)
from upstream_utils import Lib, copy_to
def copy_upstream_src(wpilib_root):

View File

@@ -3,10 +3,7 @@
import os
import shutil
from upstream_utils import (
walk_cwd_and_copy_if,
Lib,
)
from upstream_utils import Lib, walk_cwd_and_copy_if
def copy_upstream_src(wpilib_root):

View File

@@ -3,9 +3,9 @@
# Copyright (c) FIRST and other WPILib contributors.
# Open Source Software; you can modify and/or share it under the terms of
# the WPILib BSD license file in the root directory of this project.
import argparse
import json
import sys
import argparse
from pathlib import Path
from jinja2 import Environment, FileSystemLoader

View File

@@ -3,9 +3,9 @@
# Copyright (c) FIRST and other WPILib contributors.
# Open Source Software; you can modify and/or share it under the terms of
# the WPILib BSD license file in the root directory of this project.
import argparse
import json
import sys
import argparse
from pathlib import Path
from jinja2 import Environment, FileSystemLoader

View File

@@ -5,10 +5,10 @@
# the WPILib BSD license file in the root directory of this project.
import argparse
import json
import sys
import os
from typing import Dict, Any
import sys
from pathlib import Path
from typing import Any, Dict
from jinja2 import Environment, FileSystemLoader
from jinja2.environment import Template

View File

@@ -3,9 +3,9 @@
# Copyright (c) FIRST and other WPILib contributors.
# Open Source Software; you can modify and/or share it under the terms of
# the WPILib BSD license file in the root directory of this project.
import argparse
import json
import sys
import argparse
from pathlib import Path
from jinja2 import Environment, FileSystemLoader

View File

@@ -7,7 +7,7 @@ import argparse
import json
import sys
from pathlib import Path
from typing import Dict, Any
from typing import Any, Dict
from jinja2 import Environment, FileSystemLoader
from jinja2.environment import Template

View File

@@ -4,11 +4,12 @@
# Open Source Software; you can modify and/or share it under the terms of
# the WPILib BSD license file in the root directory of this project.
import sys
import argparse
from jinja2 import Environment, FileSystemLoader
import sys
from pathlib import Path
from jinja2 import Environment, FileSystemLoader
def output(output_dir: Path, outfn: str, contents: str):
output_dir.mkdir(parents=True, exist_ok=True)

View File

@@ -3,9 +3,8 @@
# Copyright (c) FIRST and other WPILib contributors.
# Open Source Software; you can modify and/or share it under the terms of
# the WPILib BSD license file in the root directory of this project.
import subprocess
import sys
import argparse
import subprocess
import sys
from pathlib import Path

View File

@@ -5,9 +5,10 @@
import array
import struct
import msgpack
from typing import List, SupportsBytes
import msgpack
__all__ = ["StartRecordData", "MetadataRecordData", "DataLogRecord", "DataLogReader"]
floatStruct = struct.Struct("<f")
@@ -260,9 +261,9 @@ class DataLogReader:
if __name__ == "__main__":
from datetime import datetime
import mmap
import sys
from datetime import datetime
if len(sys.argv) != 2:
print("Usage: datalog.py <file>", file=sys.stderr)