Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy-ups of existing template #1

Merged
merged 4 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"