Skip to content

Commit

Permalink
🔧 chore: use PEP 735 dependency group (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored Oct 26, 2024
1 parent 8c336ab commit 86e1f3a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 42 deletions.
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ Issues = "https://github.com/ShigureLab/moelib/issues"
[project.scripts]
moelib = "moelib.__main__:main"

[tool.uv]
dev-dependencies = [
[dependency-groups]
dev = [
"pyright>=1.1.386",
"ruff>=0.7.1",
"pytest>=8.3.3",
"tomli>=2.0.2",
"pyright>=1.1.384",
"pytest-rerunfailures>=14.0",
"ruff>=0.6.9",
]

[tool.pyright]
Expand Down
10 changes: 1 addition & 9 deletions tests/test_moelib.py
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"
54 changes: 26 additions & 28 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 86e1f3a

Please sign in to comment.