-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 chore: use PEP 735 dependency group (#61)
- Loading branch information
Showing
3 changed files
with
31 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
|
||
# This can be replaced with tomllib if you are using Python 3.11+ | ||
import tomli as tomllib | ||
|
||
from moelib import __version__ | ||
|
||
with Path("pyproject.toml").open("rb") as f: | ||
project_info = tomllib.load(f) | ||
|
||
|
||
def test_version(): | ||
assert __version__ == project_info["project"]["version"] | ||
assert __version__ == "0.1.0" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.