Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Bachmann1234/diff_cover
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.1.1
Choose a base ref
...
head repository: Bachmann1234/diff_cover
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.1.2
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Nov 30, 2022

  1. remove unnecessary prints

    peterg79 authored and Bachmann1234 committed Nov 30, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3c112e4 View commit details
  2. Version 7.1.2

    Bachmann1234 committed Nov 30, 2022
    Copy the full SHA
    7272259 View commit details
Showing with 6 additions and 7 deletions.
  1. +5 −0 CHANGELOG
  2. +0 −6 diff_cover/violationsreporters/violations_reporter.py
  3. +1 −1 pyproject.toml
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
11/29/2022 v7.1.2

* Remove some annoying prints (thanks @peterg79) [PR
302](https://github.com/Bachmann1234/diff_cover/pull/302)

11/28/2022 v7.1.1

* Handle branch coverage in lcov reports (thanks @peterg79)
6 changes: 0 additions & 6 deletions diff_cover/violationsreporters/violations_reporter.py
Original file line number Diff line number Diff line change
@@ -326,7 +326,6 @@ def parse(lcov_file):
raise ValueError(f"Unknown syntax in lcov report: {line}")

lcov.close()
print(lcov_report)
return lcov_report

def _cache_file(self, src_path):
@@ -357,17 +356,12 @@ def _cache_file(self, src_path):
# search for `/home/user/work/diff-cover/other_package/some_file.py`
src_abs_path = util.to_unix_path(GitPathTool.absolute_path(src_path))

print(src_rel_path)
print(src_abs_path)
print(self._lcov_roots)

# Loop through the files that contain the xml roots
for lcov_document in self._lcov_roots:

src_search_path = src_abs_path
if src_search_path not in lcov_document:
src_search_path = src_rel_path
print("search: " + src_search_path)

# First case, need to define violations initially
if violations is None:
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "diff_cover"
version = "7.1.1"
version = "7.1.2"
description = "Run coverage and linting reports on diffs"
authors = ["See Contributors"]
homepage = "https://github.com/Bachmann1234/diff-cover"