Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(docs): fix linter errors for auto-generated commands #4358

Merged
merged 4 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ jobs:
python -m pip install 'tox<5.0' tox-gh
echo "::endgroup::"
echo "::group::Create virtual environments for linting processes."
tox run -m lint --notest
tox run -m lint build-docs --notest
echo "::endgroup::"
echo "::group::Build docs."
tox run -e build-docs
echo "::endgroup::"
echo "::group::Wait for snap to complete"
snap watch --last=install
Expand Down
4 changes: 2 additions & 2 deletions snapcraft/commands/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def fill_parser(self, parser: "argparse.ArgumentParser") -> None:
action="store_true",
default=False,
help=(
"Deprecated option to enable candid login. "
mr-cal marked this conversation as resolved.
Show resolved Hide resolved
"(deprecated) Enable candid login. "
f"Set {store.constants.ENVIRONMENT_STORE_AUTH}=candid instead"
),
)
Expand Down Expand Up @@ -179,7 +179,7 @@ def fill_parser(self, parser: "argparse.ArgumentParser") -> None:
action="store_true",
default=False,
help=(
"Deprecated option to enable candid login. "
"(deprecated) Enable candid login. "
f"Set {store.constants.ENVIRONMENT_STORE_AUTH}=candid instead"
),
)
Expand Down
6 changes: 3 additions & 3 deletions snapcraft/commands/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ class StoreLegacyPromoteCommand(LegacyBaseCommand):

Prior to releasing, visual confirmation shall be required.

The format for channels is `[<track>/]<risk>[/<branch>]` where
The format for channels is ``[<track>/]<risk>[/<branch>]`` where

- <track> is used to support long-term release channels. It is
implicitly set to the default.
- <risk> is mandatory and must be one of `stable`, `candidate`,
`beta` or `edge`.
- <risk> is mandatory and must be one of ``stable``, ``candidate``,
``beta`` or ``edge``.
- <branch> is optional and dynamically creates a channel with a
specific expiration date. Branches are specifically designed
to support short-term hot fixes.
Expand Down
2 changes: 1 addition & 1 deletion snapcraft/commands/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class LintCommand(BaseCommand):

The snap is installed and linted inside a build environment. If an assertion
file exists in the same directory as the snap file with the name
`<snap-name>.assert`, it will be used to install the snap in the instance.
``<snap-name>.assert``, it will be used to install the snap in the instance.
"""
)

Expand Down
12 changes: 6 additions & 6 deletions snapcraft/commands/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ class StoreReleaseCommand(BaseCommand):
<channels> is a comma-separated list of valid channels in the store.

The <revision> must exist in the store; to see available revisions,
run `snapcraft list-revisions <name>`.
run ``snapcraft list-revisions <name>``.

The channel map will be displayed after the operation takes place. To see
the status map at any other time run `snapcraft status <name>`.
the status map at any other time run ``snapcraft status <name>``.

The format for a channel is `[<track>/]<risk>[/<branch>]` where
The format for a channel is ``[<track>/]<risk>[/<branch>]`` where

- <track> is used to have long-term release channels. It is implicitly
set to `latest`. If this snap requires one, it can be created by
set to ``latest``. If this snap requires one, it can be created by
request by having a conversation on https://forum.snapcraft.io
under the *store* category.
- <risk> is mandatory and must be one of `stable`, `candidate`, `beta`
or `edge`.
- <risk> is mandatory and must be one of ``stable``, ``candidate``, ``beta``
or ``edge``.
- <branch> is optional and dynamically creates a channel with a
specific expiration date.

Expand Down