Skip to content

Commit

Permalink
Addopt import-mode=importlib for pytest to prevent errors with import…
Browse files Browse the repository at this point in the history
…lib-metadata
  • Loading branch information
abravalheri committed Sep 17, 2024
1 parent b658783 commit 67b1b9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ all = [
store = ["validate-pyproject-schema-store"]
testing = [
"setuptools",
"pytest",
"pytest>=8.3.3",
"pytest-cov",
"pytest-xdist",
"pytest-randomly",
Expand Down Expand Up @@ -67,11 +67,12 @@ version_scheme = "no-guess-dev"

[tool.pytest.ini_options]
addopts = """
--import-mode importlib
--cov validate_pyproject
--cov-report term-missing
--doctest-modules
--verbose
--strict-markers
--verbose
"""
norecursedirs = ["dist", "build", ".tox"]
testpaths = ["src", "tests"]
Expand Down
Empty file added tests/pre_compile/__init__.py
Empty file.
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ extras =
all
testing
commands =
pytest --doctest-modules src
pytest {posargs}


Expand Down

0 comments on commit 67b1b9a

Please sign in to comment.