pytest-everyfunc 0.1.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-everyfunc
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A pytest plugin to detect completely untested functions using coverage
5
5
  Author-email: Johannes Buchner <johannes.buchner.acad@gmx.com>
6
6
  License-Expression: BSD-2-Clause
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pytest-everyfunc"
7
- version = "0.1.3"
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"
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = """Johannes Buchner"""
4
4
  __email__ = 'johannes.buchner.acad@gmx.com'
5
- __version__ = '0.1.3'
5
+ __version__ = '0.1.4'
@@ -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
- if "-" in part:
42
- start, end = map(int, part.split("-"))
43
- lines.extend(range(start, end + 1))
44
- else:
45
- lines.append(int(part))
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-everyfunc
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A pytest plugin to detect completely untested functions using coverage
5
5
  Author-email: Johannes Buchner <johannes.buchner.acad@gmx.com>
6
6
  License-Expression: BSD-2-Clause