pytest-everyfunc 0.1.2__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/PKG-INFO +1 -1
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pyproject.toml +12 -1
- pytest_everyfunc-0.1.4/pytest_everyfunc/__init__.py +5 -0
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc/plugin.py +9 -6
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc.egg-info/PKG-INFO +1 -1
- pytest_everyfunc-0.1.2/pytest_everyfunc/__init__.py +0 -0
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/README.rst +0 -0
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc.egg-info/SOURCES.txt +0 -0
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc.egg-info/dependency_links.txt +0 -0
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc.egg-info/entry_points.txt +0 -0
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc.egg-info/requires.txt +0 -0
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc.egg-info/top_level.txt +0 -0
- {pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/setup.cfg +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pytest-everyfunc"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.4"
|
|
8
8
|
description = "A pytest plugin to detect completely untested functions using coverage"
|
|
9
9
|
authors = [{name = "Johannes Buchner", email = "johannes.buchner.acad@gmx.com"}]
|
|
10
10
|
dependencies = ["pytest", "coverage", "pytest-cov"]
|
|
@@ -26,3 +26,14 @@ Issues = "https://github.com/JohannesBuchner/pytest-everyfunc/issues"
|
|
|
26
26
|
|
|
27
27
|
[project.entry-points.pytest11]
|
|
28
28
|
pytest_everyfunc = "pytest_everyfunc.plugin"
|
|
29
|
+
|
|
30
|
+
[tool.bumpversion]
|
|
31
|
+
current_version = "0.1.4"
|
|
32
|
+
commit = true
|
|
33
|
+
tag = true
|
|
34
|
+
|
|
35
|
+
[[tool.bumpversion.files]]
|
|
36
|
+
filename = "pyproject.toml"
|
|
37
|
+
|
|
38
|
+
[[tool.bumpversion.files]]
|
|
39
|
+
filename = "pytest_everyfunc/__init__.py"
|
|
@@ -38,11 +38,15 @@ def parse_missed_lines(missing_str: str) -> List[int]:
|
|
|
38
38
|
"""
|
|
39
39
|
lines = []
|
|
40
40
|
for part in missing_str.split(","):
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
part = part.strip()
|
|
42
|
+
try:
|
|
43
|
+
if "-" in part:
|
|
44
|
+
start, end = map(int, part.split("-"))
|
|
45
|
+
lines.extend(range(start, end + 1))
|
|
46
|
+
else:
|
|
47
|
+
lines.append(int(part))
|
|
48
|
+
except ValueError:
|
|
49
|
+
pass
|
|
46
50
|
return lines
|
|
47
51
|
|
|
48
52
|
|
|
@@ -184,7 +188,6 @@ def pytest_sessionfinish(session, exitstatus):
|
|
|
184
188
|
"""
|
|
185
189
|
cov_file = Path(".coverage")
|
|
186
190
|
if not cov_file.exists():
|
|
187
|
-
session.config.warn("COV001", "No .coverage file found, skipping untested function check.")
|
|
188
191
|
return
|
|
189
192
|
|
|
190
193
|
cov = coverage.Coverage()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytest_everyfunc-0.1.2 → pytest_everyfunc-0.1.4}/pytest_everyfunc.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|