Like done in the main CuPy repository, use `pre-commit` for linting. - [ ] Create a pre-commit config based on current GitHub Actions workflow (`pretest.yml`) - [ ] Rewrite the workflow to use pre-commit