Skip to content

Commit

Permalink
chore: include tests for mypy (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang authored Jan 19, 2024
1 parent 4448870 commit 305cca6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions python/mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[mypy]
strict = true
explicit_package_bases = true
exclude = (?x)(
^examples # examples folder
| ^dist # dist folder
| ^sdist # sdist folder
)

[mypy-wrapt]
ignore_missing_imports = True
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
from openinference.semconv.version import __version__ as semconv_version


def test_version():
def test_version() -> None:
print(semconv_version)
4 changes: 2 additions & 2 deletions python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ commands_pre =
commands =
ruff: ruff format . --config {toxinidir}/ruff.toml
ruff: ruff check . --fix --config {toxinidir}/ruff.toml
mypy: mypy --config-file {toxinidir}/mypy.ini --explicit-package-bases {posargs:src}
mypy: mypy --config-file {toxinidir}/mypy.ini {posargs:.}
test: pytest {posargs:tests}
ci: ruff format . --diff --config {toxinidir}/ruff.toml
ci: ruff check . --no-fix --config {toxinidir}/ruff.toml
ci: mypy --config-file {toxinidir}/mypy.ini --explicit-package-bases src
ci: mypy --config-file {toxinidir}/mypy.ini .
ci: pytest tests

0 comments on commit 305cca6

Please sign in to comment.