Skip to content

Commit ea0e1d0

Browse files
committed
chore: fix nox script
1 parent 073feff commit ea0e1d0

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
@@ -99,7 +99,7 @@ def bump(session: nox.Session) -> None:
9999

100100
session.install("requests")
101101

102-
extra = [] if args.commit else ["--quiet"]
102+
extra = ["--quiet"] if args.commit else []
103103
session.run("python", "scripts/update_cmake_version.py", version, *extra)
104104

105105
if args.commit:
@@ -120,5 +120,5 @@ def bump(session: nox.Session) -> None:
120120
)
121121
session.run("git", "commit", "-m", f"Update to CMake {version}", external=True)
122122
session.log(
123-
'Complete! Now run: gh pr create --fill --body "Created by update_cmake_version.py"'
123+
'Complete! Now run: gh pr create --fill --body "Created by running `nox -s bump -- --commit`"'
124124
)

0 commit comments

Comments
 (0)