style: pass additional linters

This commit is contained in:
Nathaniel Landau
2023-03-17 11:39:05 -04:00
parent 2493db5f23
commit 009801a691
11 changed files with 239 additions and 204 deletions

View File

@@ -91,7 +91,7 @@ class Config:
def _load_config(self) -> dict[str, Any]:
"""Load the configuration file."""
try:
with open(self.config_path, encoding="utf-8") as fp:
with self.config_path.open(encoding="utf-8") as fp:
return tomlkit.load(fp)
except tomlkit.exceptions.TOMLKitError as e:
alerts.error(f"Could not parse '{self.config_path}'")