File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ For pytest, switch to the more modern :mod: `importlib ` approach
2+ as it doesn't require to modify :data: `sys.path `:
3+ https://docs.pytest.org/en/7.2.x/explanation/pythonpath.html
Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ semver = py.typed
5555[tool:pytest]
5656norecursedirs = .git build .env/ env/ .pyenv/ .tmp/ .eggs/ venv/
5757testpaths = tests docs
58- # pythonpath = src
58+ pythonpath = src tests
5959filterwarnings =
6060 ignore:Function ' semver.*:DeprecationWarning
6161 # ' <- This apostroph is just to fix syntax highlighting
6262addopts =
63- # --import-mode=importlib
63+ --import-mode =importlib
6464 --no-cov-on-fail
6565 --cov =semver
6666 --cov-report =term-missing
Original file line number Diff line number Diff line change 44
55import semver
66
7- # sys.path.insert(0, "docs/usage")
8-
97from coerce import coerce # noqa:E402
108from semverwithvprefix import SemVerWithVPrefix # noqa:E402
119import packaging .version
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ python =
1919[testenv]
2020description = Run test suite for {basepython}
2121allowlist_externals = make
22+ skip_install = true
2223commands = pytest {posargs:}
2324deps =
2425 pytest
You can’t perform that action at this time.
0 commit comments