Skip to content

Commit

Permalink
Decode pyproject.toml as UTF-8 regardless of system locale (#233)
Browse files Browse the repository at this point in the history
* Fix TOML parse

* Code review - update to read text with encoding
  • Loading branch information
Thiago C. D'Ávila committed Jan 14, 2021
1 parent 09afa0d commit 1d13c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nox_poetry/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Config:
def __init__(self, project: Path) -> None:
"""Initialize."""
path = project / "pyproject.toml"
text = path.read_text()
text = path.read_text(encoding="utf-8")
data = tomlkit.parse(text)
self._config = data["tool"]["poetry"]

Expand Down

0 comments on commit 1d13c74

Please sign in to comment.