Skip to content

Commit 1c41fc4

Browse files
committed
refactor: merge branches
1 parent 59d29e4 commit 1c41fc4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tasks.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ def lint(c, incremental=True, format=True, revision="origin/dev...", diff=False)
4848
diff : bool
4949
Only show formatting changes, do not apply.
5050
"""
51-
if not incremental:
52-
reponse = input("This will format all files in this repo, continue? [y/N]")
53-
if reponse.lower() not in ("y", "yes"):
54-
return
55-
5651
diff = "--diff" if diff else ""
5752
if incremental:
5853
if format:
@@ -63,6 +58,9 @@ def lint(c, incremental=True, format=True, revision="origin/dev...", diff=False)
6358
sys.exit(1)
6459
else:
6560
if format:
61+
reponse = input("This will format all files in this repo, continue? [y/N]")
62+
if reponse.lower() not in ("y", "yes"):
63+
return
6664
c.run(f"black {diff} .")
6765
c.run(f"isort {diff} .")
6866
c.run("pylint src/ tests/ integrations/")

0 commit comments

Comments
 (0)