(repo: str = '.')
| 194 | |
| 195 | |
| 196 | def commit(repo: str = '.') -> None: |
| 197 | env = no_git_env() |
| 198 | name, email = 'pre-commit', 'asottile+pre-commit@umich.edu' |
| 199 | env['GIT_AUTHOR_NAME'] = env['GIT_COMMITTER_NAME'] = name |
| 200 | env['GIT_AUTHOR_EMAIL'] = env['GIT_COMMITTER_EMAIL'] = email |
| 201 | cmd = ('git', 'commit', '--no-edit', '--no-gpg-sign', '-n', '-minit') |
| 202 | cmd_output_b(*cmd, cwd=repo, env=env) |
| 203 | |
| 204 | |
| 205 | def git_path(name: str, repo: str = '.') -> str: |
nothing calls this directly
no test coverage detected