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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pytest = "*"
pyyaml = "*"
pydocstyle = "*"
sphinx-rtd-theme = "*"
toml = "*"
tomli = "*"
yamllint = "*"
"ruamel.yaml" = "*"
mkdocs = "1.6.0"
Expand Down
7 changes: 4 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from invoke import task

try:
import toml
import tomli
except ImportError:
sys.exit("Please make sure to `pip install toml` or enable the Poetry shell and run `poetry install`.")
sys.exit("Please make sure to `pip install tomli` or enable the Poetry shell and run `poetry install`.")


def strtobool(val: str) -> bool:
Expand Down Expand Up @@ -49,7 +49,8 @@ def is_truthy(arg):
return bool(strtobool(arg))


PYPROJECT_CONFIG = toml.load("pyproject.toml")
with open("pyproject.toml", "rb") as fd:
PYPROJECT_CONFIG = tomli.load(fd)
TOOL_CONFIG = PYPROJECT_CONFIG["tool"]["poetry"]

# Can be set to a separate Python version to be used for launching or building image
Expand Down