Fix import sorting issues in environment files - Move wandb imports to third-party section in philosophical_rlaif_env.py, math_server.py, math_server_zero.py, and tool_calling_server.py - Add missing spaces after commas in ufc_server.py stats.get() calls - Manual fixes to resolve CI linting failures

This commit is contained in:
Shannon Sands 2025-05-23 15:58:16 +10:00
parent 285b2bb2b7
commit 8aff7cb3c5
5 changed files with 19 additions and 19 deletions

View file

@ -3,10 +3,10 @@ import random
import re # Added import for regular expressions
from typing import Dict, List, Optional, Tuple
import wandb # type: ignore
from datasets import load_dataset # type: ignore
from pydantic import Field
import wandb # type: ignore
from atroposlib.envs.base import BaseEnvConfig # Ensure BaseEnvConfig is imported
from atroposlib.envs.base import (
APIServerConfig,

View file

@ -88,21 +88,21 @@ class UFCEnv(BaseEnv):
return f"{name}: (No stats available)"
return (
f"Name: {name}\n"
f"Wins: {stats.get('wins','?')} "
f"Losses: {stats.get('losses','?')} "
f"Age: {stats.get('age','?')}\n"
f"Height: {stats.get('height','?')} cm "
f"Weight: {stats.get('weight','?')} kg "
f"Reach: {stats.get('reach','?')} cm "
f"Stance: {stats.get('stance','?')}\n"
f"SLpM: {stats.get('SLpM','?')} "
f"Sig Str Acc: {stats.get('sig_str_acc','?')} "
f"SApM: {stats.get('SApM','?')} "
f"Str Def: {stats.get('str_def','?')}\n"
f"TD Avg: {stats.get('td_avg','?')} "
f"TD Acc: {stats.get('td_acc','?')} "
f"TD Def: {stats.get('td_def','?')} "
f"Sub Avg: {stats.get('sub_avg','?')}\n"
f"Wins: {stats.get('wins', '?')} "
f"Losses: {stats.get('losses', '?')} "
f"Age: {stats.get('age', '?')}\n"
f"Height: {stats.get('height', '?')} cm "
f"Weight: {stats.get('weight', '?')} kg "
f"Reach: {stats.get('reach', '?')} cm "
f"Stance: {stats.get('stance', '?')}\n"
f"SLpM: {stats.get('SLpM', '?')} "
f"Sig Str Acc: {stats.get('sig_str_acc', '?')} "
f"SApM: {stats.get('SApM', '?')} "
f"Str Def: {stats.get('str_def', '?')}\n"
f"TD Avg: {stats.get('td_avg', '?')} "
f"TD Acc: {stats.get('td_acc', '?')} "
f"TD Def: {stats.get('td_def', '?')} "
f"Sub Avg: {stats.get('sub_avg', '?')}\n"
)
prompt_text = (