Skip to content

Commit a3ac6ed

Browse files
pradyunsgichard26
authored andcommitted
Install vendoring after parsing arguments
1 parent 23289a6 commit a3ac6ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ def vendoring(session: nox.Session) -> None:
190190
"python", "-c", "import sys; sys.exit(1 if sys.version_info < (3, 10) else 0)"
191191
)
192192

193-
session.install("vendoring~=1.2.0")
194-
195193
parser = argparse.ArgumentParser(prog="nox -s vendoring")
196194
parser.add_argument("--upgrade-all", action="store_true")
197195
parser.add_argument("--upgrade", action="append", default=[])
198196
parser.add_argument("--skip", action="append", default=[])
199197
args = parser.parse_args(session.posargs)
200198

199+
session.install("vendoring~=1.2.0")
200+
201201
if not (args.upgrade or args.upgrade_all):
202202
session.run("vendoring", "sync", "-v")
203203
return

0 commit comments

Comments
 (0)