Skip to content

Commit 25b3ead

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 942b7de commit 25b3ead

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

ardupilot_methodic_configurator/backend_filesystem_migration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,7 @@ def _migrate_v0_to_v1(vehicle_path: Path) -> None:
370370
dst_path = vehicle_path / dst_name
371371
existing = _read_param_file_lines(dst_path) if dst_path.exists() else []
372372
existing_names = {
373-
_param_name_from_line(existing_line)
374-
for existing_line in existing
375-
if _param_name_from_line(existing_line)
373+
_param_name_from_line(existing_line) for existing_line in existing if _param_name_from_line(existing_line)
376374
}
377375
new_lines = [line for line in lines if _param_name_from_line(line) not in existing_names]
378376
if not new_lines:

param_reorder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def main() -> None:
276276
renames = reorder_param_files(steps)
277277
param_dirs = loop_relevant_files(renames, steps)
278278
reorder_actual_files(renames, param_dirs)
279-
#change_line_endings_for_md_files()
279+
# change_line_endings_for_md_files()
280280

281281

282282
if __name__ == "__main__":

scripts/force_format_version.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Get-ChildItem -Path "ardupilot_methodic_configurator\vehicle_templates" -Recurse -Filter "vehicle_components.json" | ForEach-Object { (Get-Content $_.FullName -Raw) -replace '"Format version": 1', '"Format version": 0' | Set-Content $_.FullName -NoNewline }
1+
Get-ChildItem -Path "ardupilot_methodic_configurator\vehicle_templates" -Recurse -Filter "vehicle_components.json" | ForEach-Object { (Get-Content $_.FullName -Raw) -replace '"Format version": 1', '"Format version": 0' | Set-Content $_.FullName -NoNewline }

0 commit comments

Comments
 (0)