This adds trailing lines to files, removes trailing white space in all the other lines and unifies line endings. Additionally it formats the test code with `black`.
* Improve macOS packaging, add notarization. * Properly use QApplication while testing, remove workarounds. * Use Github Workflows instead of Travis. * Remove outdated test workaround.