10👍
✅
compileall
can be used to compile all Python scripts in the project directory.
python -m compileall path/to/project
Source:stackexchange.com