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
55
55
[tool:pytest]
56
56
norecursedirs = .git build .env/ env/ .pyenv/ .tmp/ .eggs/ venv/
57
57
testpaths = tests docs
58
- # pythonpath = src
58
+ pythonpath = src tests
59
59
filterwarnings =
60
60
ignore:Function ' semver.*:DeprecationWarning
61
61
# ' <- This apostroph is just to fix syntax highlighting
62
62
addopts =
63
- # --import-mode=importlib
63
+ --import-mode =importlib
64
64
--no-cov-on-fail
65
65
--cov =semver
66
66
--cov-report =term-missing
Original file line number Diff line number Diff line change 4
4
5
5
import semver
6
6
7
- # sys.path.insert(0, "docs/usage")
8
-
9
7
from coerce import coerce # noqa:E402
10
8
from semverwithvprefix import SemVerWithVPrefix # noqa:E402
11
9
import packaging .version
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ python =
19
19
[testenv]
20
20
description = Run test suite for {basepython}
21
21
allowlist_externals = make
22
+ skip_install = true
22
23
commands = pytest {posargs:}
23
24
deps =
24
25
pytest
You can’t perform that action at this time.
0 commit comments