Skip to content

Commit eb55873

Browse files
authored
chore: Small misc comment fixes (#11106)
1 parent ce4b27f commit eb55873

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: bazel_ruff_format
1919
name: Auto format Python files
2020
stages: [commit]
21-
entry: bazel run //:ruff-format
21+
entry: bazel run //:ruff-fix
2222
files: \.py$
2323
language: system
2424

ic-os/dev-tools/bare_metal_deployment/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def main():
797797
print(sys.argv)
798798
args: Args = parse(Args, add_config_path_arg=True) # Parse from config file too
799799

800-
DISABLE_PROGRESS_BAR = args.ci_mode # noqa - ruff format wants to erroneously delete this
800+
DISABLE_PROGRESS_BAR = args.ci_mode # noqa - ruff fix wants to erroneously delete this
801801

802802
network_image_url: str = f"http://{args.file_share_url}/{args.file_share_image_filename}"
803803
log.info(f"Using network_image_url: {network_image_url}")

pre-commit/ruff-check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if ! "$RUFF" check . || ! "$RUFF" format . --check; then
1010
1111
[-] Linting Python files failed
1212
Please run the following command to fix it:
13-
$ bazel run //:ruff-format
13+
$ bazel run //:ruff-fix
1414
EOF
1515
exit 1
1616
fi

rs/ic_os/networking/deterministic_ips/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ pub fn calculate_deterministic_mac(
8484
[0x6a, index, hash[0], hash[1], hash[2], hash[3]].into()
8585
}
8686
VmSlot::Multi(slot) => {
87-
// NOTE: We extend to 7a and use the space of the index to store the
88-
// slot.
87+
// NOTE: We extend to 7a and use some of the space of the hash to store the slot.
8988
// 0x7a: locally administered, unicast MAC prefix chosen for IPv6 deterministic addressing.
9089
[0x7a, index, slot.into(), hash[1], hash[2], hash[3]].into()
9190
}

0 commit comments

Comments
 (0)