mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add --no-stash option.
This commit is contained in:
parent
5386b0eea0
commit
8a8b2241a6
4 changed files with 54 additions and 11 deletions
|
|
@ -62,3 +62,9 @@ def clean_path_on_failure(path):
|
|||
if os.path.exists(path):
|
||||
shutil.rmtree(path)
|
||||
raise
|
||||
|
||||
|
||||
# TODO: asottile.contextlib this with a forward port of nested
|
||||
@contextlib.contextmanager
|
||||
def noop_context():
|
||||
yield
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue