Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.10"
rev: "v0.16.0"
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand Down Expand Up @@ -56,7 +56,7 @@ repos:
# committed fingerprint (.rrt/artifacts.lock.toml). Refresh the lock after
# regenerating with: just docs (or rrt artifacts --snapshot ).
- repo: https://github.com/Anselmoo/repo-release-tools
rev: v1.9.1
rev: v1.14.0
hooks:
- id: rrt-artifacts-check
stages: [pre-push]
Expand Down
4 changes: 1 addition & 3 deletions benchmarks/run_benchmark_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,7 @@ def run_benchmark_suite(
}

results = run_benchmark_suite(
output_dir=args.output_dir,
tier=args.tier,
subset=args.subset if args.subset else None,
output_dir=args.output_dir, tier=args.tier, subset=args.subset or None
)

print(
Expand Down
2 changes: 1 addition & 1 deletion docs/public/benchmarks/benchmark-results.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions scripts/docstring_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def parse_algorithm_metadata(self, content: str) -> dict | None:
elif key == "COCO Compatible":
metadata["coco_compatible"] = value.lower() in ("yes", "true")

return metadata if metadata else None
return metadata or None

def parse_args_section(self, content: str) -> list[dict] | None:
"""Parse Args section into list of parameter dictionaries.
Expand Down Expand Up @@ -207,7 +207,7 @@ def parse_args_section(self, content: str) -> list[dict] | None:
if current_param:
parameters.append(current_param)

return parameters if parameters else None
return parameters or None

def parse_file(self, file_path: Path) -> COCOBBOBOptimizerDocstringSchema:
"""Extract and validate class docstring from file.
Expand Down
2 changes: 1 addition & 1 deletion src/opt/multi_objective/nsga_ii.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def __init__(
track_history=track_history,
)
self.crossover_prob = crossover_prob
self.mutation_prob = mutation_prob if mutation_prob else 1.0 / dim
self.mutation_prob = mutation_prob or 1.0 / dim
self.tournament_size = tournament_size
self.eta_c = eta_c
self.eta_m = eta_m
Expand Down
Loading