cleanup match.arg call
add pre-commit hooks