Update pre-commit and tox configuration