Skip to content

Commit

Permalink
added progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly-Protasov committed Jul 16, 2020
1 parent 42b65e0 commit 02b80bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/all.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import os
import sys
from aibolit.config import Config
import time
import tqdm

# TODO: fix all errors in the patterns/metrics and make these lists empty
EXCLUDE_PATTERNS = ['P31', 'P32']
EXCLUDE_METRICS = []

current_path: str = os.path.dirname(os.path.realpath(__file__))
for filename in os.listdir(current_path + '/samples'):
print('Progress of samples: ')

for filename in tqdm.tqdm(os.listdir(current_path + '/samples')):

for pattern in Config.get_patterns_config()['patterns']:
if pattern['code'] in EXCLUDE_PATTERNS:
continue
Expand Down

0 comments on commit 02b80bf

Please sign in to comment.