Skip to content

Commit

Permalink
Fix validating schema from pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerejkowsky committed Jun 11, 2021
1 parent b610c2e commit 1edcf06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tbump/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def __init__(self, path: Path, doc: TOMLDocument):
self.doc = doc

def get_parsed(self) -> Any:
# Document -> dict
return self.doc.value


Expand All @@ -77,7 +78,8 @@ def __init__(self, path: Path, doc: TOMLDocument):
super().__init__(path)

def get_parsed(self) -> Any:
return self.doc["tool"]["tbump"].value
# Document -> Container -> dict
return self.doc["tool"]["tbump"].value.value


def validate_template(name: str, pattern: str, value: str) -> None:
Expand Down

0 comments on commit 1edcf06

Please sign in to comment.