Use tomli and tomllib instead of toml by DanielNoord · Pull Request #771 · pre-commit/pre-commit-hooks
Closes #755.
Originally this switch was rejected because the hope was that toml would be updated at one point, see #608. However, the latest commit is from 1 November 2020 (commits) and tomli will be part of Python 3.11 so it seems like a good candidate to replace it.
Similar PRs have been used in other "mainstream" projects like python/mypy#12305 and pytest-dev/pytest#9741.