add pre-commit to replace tab with four spaces and remove trailing spaces