Skip to content

Commit 61c5596

Browse files
committed
build: add setup-remote as a nox session
1 parent 97a6c9c commit 61c5596

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ def setup_venv(session: Session) -> None:
6060
session.run("python", SCRIPTS_FOLDER / "setup-venv.py", REPO_ROOT, "-p", PYTHON_VERSIONS[0], external=True)
6161

6262

63+
@nox.session(python=False, name="setup-remote")
64+
def setup_remote(session: Session) -> None:
65+
"""Set up the remote repository for the current project."""
66+
command: list[str] = [
67+
"python", SCRIPTS_FOLDER / "setup-remote.py", REPO_ROOT, "--host", REPOSITORY_HOST, "--path", REPOSITORY_PATH
68+
]
69+
session.run(*command, external=True)
70+
71+
6372
@nox.session(python=DEFAULT_PYTHON_VERSION, name="pre-commit", tags=[QUALITY])
6473
def precommit(session: Session) -> None:
6574
"""Lint using pre-commit."""

0 commit comments

Comments
 (0)