From fe10f30529e5b56020352a02302d8b5b9e76c478 Mon Sep 17 00:00:00 2001
From: Amandine PERRIN <amandine.perrin@pasteur.fr>
Date: Mon, 12 Oct 2020 13:52:10 +0200
Subject: [PATCH] Reduce progressbar to default terminal size (79)

---
 PanACoTA/annotate_module/annotation_functions.py | 2 +-
 setup.cfg                                        | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/PanACoTA/annotate_module/annotation_functions.py b/PanACoTA/annotate_module/annotation_functions.py
index 523147ba..41497d50 100755
--- a/PanACoTA/annotate_module/annotation_functions.py
+++ b/PanACoTA/annotate_module/annotation_functions.py
@@ -106,7 +106,7 @@ def run_annotation_all(genomes, threads, force, annot_folder, prodigal_only=Fals
                    progressbar.Percentage(), ') - ', progressbar.Timer(), ' - '
                   ]
         bar = progressbar.ProgressBar(widgets=widgets, max_value=nbgen,
-                                      term_width=100).start()
+                                      term_width=79).start()
     # Get resource availability:
     # - number of threads used by prokka/prodigal (cores_annot)
     # - how many genomes can be annotated at the same time (pool_size)
diff --git a/setup.cfg b/setup.cfg
index 31c12f66..0fb01dac 100755
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,7 +7,8 @@ max-line-length = 100
 
 [tool:pytest]
 junit_family=legacy
-addopts = --cov-report=html --cov-report=xml --cov PanACoTA --mpl --cov-append
+addopts = --cov-report=html --cov-report=xml --cov PanACoTA --mpl 
+# --cov-append
 # add option for junit tests report --junitxml=junit_tests.xml
 # add option if coverage must be added to previous one --cov-append
 # add option to get report in terminal --cov-report=term
-- 
GitLab