ci: cleanup for linting errors
This commit is contained in:
parent
3226b4952c
commit
7a36290b40
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
""" Get completed tasks from taskwarrior and output a simple report """
|
||||||
import subprocess
|
import subprocess
|
||||||
import json
|
import json
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
@ -13,6 +14,7 @@ __version__ = "0.2.0"
|
||||||
@click.option("--uuid", is_flag=True, help="Display the task UUID")
|
@click.option("--uuid", is_flag=True, help="Display the task UUID")
|
||||||
@click.option("--header", is_flag=True, help="Display date header")
|
@click.option("--header", is_flag=True, help="Display date header")
|
||||||
def main(uuid, header):
|
def main(uuid, header):
|
||||||
|
"""Main function that does all the work for task_status"""
|
||||||
today = date.today()
|
today = date.today()
|
||||||
last_monday = today + relativedelta(weekday=MO(-2))
|
last_monday = today + relativedelta(weekday=MO(-2))
|
||||||
|
|
||||||
|
@ -25,6 +27,7 @@ def main(uuid, header):
|
||||||
"status_report:display",
|
"status_report:display",
|
||||||
],
|
],
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
|
check=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
entries = json.loads(tasks.stdout.decode())
|
entries = json.loads(tasks.stdout.decode())
|
||||||
|
@ -42,4 +45,4 @@ def main(uuid, header):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main() # pylint: disable=no-value-for-parameter
|
||||||
|
|
Loading…
Reference in a new issue