Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Aug 7, 2024
1 parent 9adfab0 commit 25f5cfc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,10 @@ required-imports = [
"from __future__ import annotations",
]

[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"S101", # asserts allowed in tests...
]

[tool.coverage.report]
include = ["python_template/*"] # Please revise this line.
4 changes: 4 additions & 0 deletions python_template/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
from ._version import __version__

__email__ = "[email protected]"

__all__ = [
"__version__",
]
4 changes: 3 additions & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"""Test version."""
from __future__ import annotations

from importlib.metadata import version

from python_template import __version__


def test_version():
def test_version() -> NoReturn:
"""Test version."""
assert version("python-template") == __version__

0 comments on commit 25f5cfc

Please sign in to comment.