taskcheck 0.3.3.post3__tar.gz → 0.4.0__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
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: taskcheck
3
- Version: 0.3.3.post3
3
+ Version: 0.4.0
4
4
  Summary: Automatic scheduler for taskwarrior
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "taskcheck"
3
- version = "0.3.3-3"
3
+ version = "0.4.0"
4
4
  description = "Automatic scheduler for taskwarrior"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -20,6 +20,12 @@ arg_parser.add_argument(
20
20
  action="store",
21
21
  help="generate a report of the tasks based on the scheduling; can be any Taskwarrior datetime specification (e.g. today, tomorrow, eom, som, 1st, 2nd, etc.). It is considered as `by`, meaning that the report will be generated for all the days until the specified date and including it.",
22
22
  )
23
+ arg_parser.add_argument(
24
+ "-s",
25
+ "--schedule",
26
+ action="store_true",
27
+ help="perform the scheduling algorithm, giving a schedule and a scheduling UDA and alerting for not completable tasks",
28
+ )
23
29
 
24
30
  args = arg_parser.parse_args()
25
31
 
@@ -33,21 +39,27 @@ def load_config():
33
39
 
34
40
  def main():
35
41
  # Load data and check tasks
42
+ print_help = True
36
43
  if args.install:
37
44
  from taskcheck.install import install
38
45
 
39
46
  install()
40
47
  return
41
48
 
49
+ if args.schedule:
50
+ config = load_config()
51
+ check_tasks_parallel(config, verbose=args.verbose)
52
+ print_help = False
53
+
42
54
  if args.report:
43
55
  from taskcheck.report import generate_report
44
56
 
45
57
  config = load_config()
46
58
  generate_report(config, args.report, args.verbose)
47
- return
59
+ print_help = False
48
60
 
49
- config = load_config()
50
- check_tasks_parallel(config, verbose=args.verbose)
61
+ if print_help:
62
+ arg_parser.print_help()
51
63
 
52
64
 
53
65
  if __name__ == "__main__":
@@ -315,7 +315,7 @@ def build_tasks_table(config, tasks):
315
315
  for task in tasks:
316
316
  task_id = f"[bold green]#{task['id']}[/bold green]"
317
317
  project = task.get("project", "")
318
- description = Text(task["description"], style="white")
318
+ description = Text(task["description"], style="italic")
319
319
  hours = f"[yellow]{task['scheduling_hours']}[/yellow]"
320
320
  emoji = get_task_emoji(config, task)
321
321
 
@@ -382,7 +382,7 @@ def build_unplanned_tasks_table(config, tasks):
382
382
  for task in tasks:
383
383
  task_id = f"[bold green]#{task['id']}[/bold green]"
384
384
  project = task.get("project", "")
385
- description = Text(task["description"], style="white")
385
+ description = Text(task["description"], style="italic")
386
386
  emoji = get_task_emoji(config, task)
387
387
 
388
388
  table.add_row(
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: taskcheck
3
- Version: 0.3.3.post3
3
+ Version: 0.4.0
4
4
  Summary: Automatic scheduler for taskwarrior
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes