Skip to content

Commit

Permalink
Merge pull request #1 from alexdewar/tidyup
Browse files Browse the repository at this point in the history
Tidy-ups of existing template
  • Loading branch information
alexdewar authored May 28, 2024
2 parents c56d901 + abad7ed commit 62524a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 3 additions & 1 deletion myproject/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""The main module for MyProject."""

__version__ = "0.1.0"
from importlib.metadata import version

__version__ = version(__name__)
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pytest-cov = "^5.0.0"
pytest-mypy = "^0.10.0"
pytest-mock = "^3.7.0"
pre-commit = "^3.0.4"
ruff = "^0.4.4"

[tool.mypy]
disallow_any_explicit = true
Expand Down
6 changes: 0 additions & 6 deletions tests/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_myproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
from myproject import __version__


def test_version():
def test_version() -> None:
"""Check that the version is acceptable."""
assert __version__ == "0.1.0"

0 comments on commit 62524a7

Please sign in to comment.