mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[ci] Upgrade to wpiformat 2024.45 (#7326)
This commit is contained in:
2
.github/workflows/comment-command.yml
vendored
2
.github/workflows/comment-command.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/lint-format.yml
vendored
4
.github/workflows/lint-format.yml
vendored
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import argparse
|
||||
import binascii
|
||||
import os
|
||||
|
||||
|
||||
def generate_file(resource_file, output_file, prefix, namespace):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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(
|
||||
[
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user