Skip to content

Commit 86e1f3a

Browse files
authored
🔧 chore: use PEP 735 dependency group (#61)
1 parent 8c336ab commit 86e1f3a

File tree

3 files changed

+31
-42
lines changed

3 files changed

+31
-42
lines changed

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ Issues = "https://github.com/ShigureLab/moelib/issues"
3131
[project.scripts]
3232
moelib = "moelib.__main__:main"
3333

34-
[tool.uv]
35-
dev-dependencies = [
34+
[dependency-groups]
35+
dev = [
36+
"pyright>=1.1.386",
37+
"ruff>=0.7.1",
3638
"pytest>=8.3.3",
37-
"tomli>=2.0.2",
38-
"pyright>=1.1.384",
3939
"pytest-rerunfailures>=14.0",
40-
"ruff>=0.6.9",
4140
]
4241

4342
[tool.pyright]

tests/test_moelib.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
from __future__ import annotations
22

3-
from pathlib import Path
4-
5-
# This can be replaced with tomllib if you are using Python 3.11+
6-
import tomli as tomllib
7-
83
from moelib import __version__
94

10-
with Path("pyproject.toml").open("rb") as f:
11-
project_info = tomllib.load(f)
12-
135

146
def test_version():
15-
assert __version__ == project_info["project"]["version"]
7+
assert __version__ == "0.1.0"

uv.lock

Lines changed: 26 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)