Skip to content

Commit

Permalink
removed coverage annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
introkun committed Mar 25, 2024
1 parent 6e9a8f4 commit 074662e
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,30 @@

from invoke import task

if os.name == 'nt': # Windows
py = "python"
if os.name == "nt": # Windows
py = "python"
else:
py = "python3"
py = "python3"


@task
def coverage(c, details=False):
c.run("coverage erase")
c.run("coverage run -m pytest")
if details:
c.run("coverage html && coverage annotate")
c.run("coverage report", pty=True)
c.run("coverage erase")
c.run("coverage run -m pytest")
if details:
c.run("coverage html")
c.run("coverage report", pty=True)


@task
def test(c):
coverage(c)
coverage(c)


@task
def lint(c):
run_arg = "pylint -j 4 qt_range_slider/__init__.py example.py tests/"
if os.name == 'nt': # Windows
c.run(run_arg)
else:
c.run(run_arg, pty=True)
run_arg = "pylint -j 4 qt_range_slider/__init__.py example.py tests/"
if os.name == "nt": # Windows
c.run(run_arg)
else:
c.run(run_arg, pty=True)

0 comments on commit 074662e

Please sign in to comment.