Skip to content

Commit

Permalink
fix code style by pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengwj committed Feb 28, 2025
1 parent 2285906 commit 1417dc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
4 changes: 2 additions & 2 deletions py/core/main/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def from_toml(cls, config_path: Optional[str] = None) -> "R2RConfig":
config_path = R2RConfig.default_config_path

# Load configuration from TOML file
with open(config_path, encoding='utf-8') as f:
with open(config_path, encoding="utf-8") as f:
config_data = toml.load(f)

return cls(config_data)
Expand All @@ -164,7 +164,7 @@ def to_toml(self):

@classmethod
def load_default_config(cls) -> dict:
with open(R2RConfig.default_config_path, encoding='utf-8') as f:
with open(R2RConfig.default_config_path, encoding="utf-8") as f:
return toml.load(f)

@staticmethod
Expand Down

0 comments on commit 1417dc2

Please sign in to comment.