mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 16:44:42 +04:00
Add a manual stage for cli-only interaction
This commit is contained in:
parent
4088f55ee6
commit
bf5792eb10
5 changed files with 30 additions and 45 deletions
|
|
@ -180,7 +180,8 @@ class Fixture(object):
|
|||
def get_bytes(self):
|
||||
"""Get the output as-if no encoding occurred"""
|
||||
data = self._stream.data.getvalue()
|
||||
self._stream.data.truncate(0)
|
||||
self._stream.data.seek(0)
|
||||
self._stream.data.truncate()
|
||||
return data
|
||||
|
||||
def get(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue