maint: tweak .gitignore and remove redundant files
combine code/.gitignore and the one at the root of the repo
.bandit was part of codacy checks suite, current python code
should probably be updated to use either pylint directly and (/ or)
through the codeql python workflow