Skip to content

Commit

Permalink
chore: simplify nox command to template (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com>
  • Loading branch information
msclock authored Dec 5, 2024
1 parent 734f0fc commit b8314ad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: pipx install copier==9.4.1

- name: Verify template
run: pipx run nox -s template_build
run: pipx run nox -s template

- name: Test for consistency
run: |
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
run: pipx install copier==9.4.1

- name: Apply mkdocs
run: pipx run nox -s template_build -- -d docs_type=mkdocs
run: pipx run nox -s template -- -d docs_type=mkdocs

- name: Checks the docs with warnings as errors
run: pipx run nox -s docs -- --check
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def build(session: nox.Session) -> None:


@nox.session(reuse_venv=True)
def template_build(session: nox.Session) -> None:
def template(session: nox.Session) -> None:
"""
Build template for the current repo only.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: pipx install copier==9.4.1

- name: Verify template
run: pipx run nox -s template_build
run: pipx run nox -s template

- name: Test for consistency
run: |
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
run: pipx install copier==9.4.1

- name: Apply mkdocs
run: pipx run nox -s template_build -- -d docs_type=mkdocs
run: pipx run nox -s template -- -d docs_type=mkdocs

- name: Checks the docs with warnings as errors
run: pipx run nox -s docs -- --check
Expand Down
2 changes: 1 addition & 1 deletion template/noxfile.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def build(session: nox.Session) -> None:


@nox.session(reuse_venv=True)
def template_build(session: nox.Session) -> None:
def template(session: nox.Session) -> None:
"""
Build template for the current repo only.
"""
Expand Down

0 comments on commit b8314ad

Please sign in to comment.