chore(ci): make quality checks pass across repo

- fix ruff violations in dataset, recording, and value modules

- fix typos findings and markdown/workflow lint issues

- update pages workflow checkout to disable credential persistence

- apply pre-commit auto-formatting and EOF normalization

- include requested repo housekeeping updates (.gitignore and README)
这个提交包含在:
Elvin
2026-03-04 11:02:06 +08:00
父节点 908eb4bbbc
当前提交 3a87382ba4
共有 27 个文件被更改,包括 152 次插入 和 120 次删除

查看文件

@ -9,7 +9,9 @@ def test_contiguous_distributed_eval_sampler_has_contiguous_shards_with_tail_pad
shards: list[list[int]] = []
for rank in range(world_size):
sampler = ContiguousDistributedEvalSampler(dataset_size=dataset_size, num_replicas=world_size, rank=rank)
sampler = ContiguousDistributedEvalSampler(
dataset_size=dataset_size, num_replicas=world_size, rank=rank
)
shard = list(iter(sampler))
shards.append(shard)
assert len(shard) == len(sampler) == 4
@ -30,7 +32,9 @@ def test_contiguous_distributed_eval_sampler_handles_more_ranks_than_samples():
shards: list[list[int]] = []
for rank in range(world_size):
sampler = ContiguousDistributedEvalSampler(dataset_size=dataset_size, num_replicas=world_size, rank=rank)
sampler = ContiguousDistributedEvalSampler(
dataset_size=dataset_size, num_replicas=world_size, rank=rank
)
shard = list(iter(sampler))
shards.append(shard)
assert len(shard) == len(sampler) == 1