Skip to content

Commit 733ba0e

Browse files
authored
chore(dev-deps): use tomli (#685)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 0ac84d7 commit 733ba0e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pep8-naming = "0.14.1"
9494
isort = "5.13.2"
9595
autopep8 = "2.3.1"
9696
mypy = "1.11.2"
97-
toml = { version="0.10.2", python="<3.11"}
97+
tomli = { version = "2.0.1", python = "<3.11" }
9898
tox = "4.20.0"
9999
xmldiff = "2.7.0"
100100
bandit = "1.7.9"

tests/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ def __name__(self) -> str:
196196
def load_pyproject() -> Dict[str, Any]:
197197
if sys.version_info >= (3, 11):
198198
from tomllib import load as toml_load
199-
with open(path.join(path.dirname(__file__), '..', 'pyproject.toml'), 'rb') as f:
200-
return toml_load(f)
201199
else:
202-
from toml import load as toml_load
203-
with open(path.join(path.dirname(__file__), '..', 'pyproject.toml'), 'rt') as f:
204-
return toml_load(f)
200+
from tomli import load as toml_load
201+
with open(path.join(path.dirname(__file__), '..', 'pyproject.toml'), 'rb') as f:
202+
return toml_load(f)

0 commit comments

Comments
 (0)