Closed Sim0xx001 closed 1 year ago
potreste aggiungere pylint 👀 https://github.com/UNICT-Quality-Development/qd-starter-pack/pull/25
imho sys.path.append
è un big hack, ogni tanto lo uso ma non mi sembra il caso di usarlo
ispiratevi a https://github.com/UNICT-Quality-Development/qd-starter-pack/
da notare che l'errore "no module found taggedQueue" (o simili) è dovuto al non visualizzare la cartella del progetto root (/
) come "modulo" perchè non è presente il file __init__.py
, come è presente sotto src/ in qd-starter-pack ( https://github.com/UNICT-Quality-Development/qd-starter-pack/blob/main/src/__init__.py ), quindi aggiungete nella cartella principale del progetto init.py
Purtroppo python non è un ottimo linguaggio per gestire gli import.
P.S. vi consiglio di fixare i tests localmente eseguendo nel vostro pc il comando python3 -m pytest .
o pytest tests
o pytest .
mentre siete nella cartella principale del progetto (quindi nella cartella superiore a tests
NON dentro tests).
Very simple implementation for pytest pipeline