Skip to content

Commit

Permalink
chore: switch to codespell snap (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau authored Apr 25, 2024
1 parent a5b35ea commit 439dad6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
echo "::group::Begin snap install"
echo "Installing snaps in the background while running apt and pip..."
sudo snap install --no-wait --classic pyright
sudo snap install --no-wait shellcheck ruff
sudo snap install --no-wait codespell shellcheck ruff
echo "::endgroup::"
echo "::group::pip install"
python -m pip install tox
Expand Down
2 changes: 2 additions & 0 deletions HACKING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ you with tox, but you'll need to install:
deadsnakes_ PPA) with setuptools.
- tox_ version 3.8 or later
- ShellCheck_ (also available via snap: ``snap install shellcheck``)
- Codespell_ (also available via snap: ``snap install codespell``)
- ruff_ (also available via snap: ``snap install ruff``)

Once you have all of those installed, you can install the necessary virtual
Expand Down Expand Up @@ -267,6 +268,7 @@ Example footers::

.. _Black: https://black.readthedocs.io
.. _`Canonical contributor licence agreement`: http://www.ubuntu.com/legal/contributors/
.. _Codespell: https://github.com/codespell-project/codespell
.. _`conventional commit`: https://www.conventionalcommits.org/en/v1.0.0/#summary
.. _deadsnakes: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
.. _`git submodules`: https://git-scm.com/book/en/v2/Git-Tools-Submodules#_cloning_submodules
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ dev = [
]
lint = [
"black~=24.1",
"codespell[toml]~=2.2",
"yamllint~=1.34"
"yamllint~=1.34",
]
types = [
"mypy[reports]~=1.9.0",
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ extras = lint
env_dir = {work_dir}/linting
runner = ignore_env_name_mismatch
allowlist_externals =
codespell: codespell
shellcheck: bash, xargs
ruff: ruff

Expand Down

0 comments on commit 439dad6

Please sign in to comment.