Skip to content

Commit

Permalink
Add typos enforcement to CI (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Jun 10, 2024
1 parent 1b38c26 commit 3dd7c2d
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ jobs:
run: |
poetry check
poetry lock --check
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
4 changes: 4 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[files]
extend-exclude = [
"**/__snapshots__/",
]
2 changes: 1 addition & 1 deletion scenarios/excluded.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"name": "dependency-excludes-non-contiguous-range-of-compatible-versions",
"description": "There is a non-contiguous range of compatible versions for the requested package `a`, but another dependency `c` excludes the range. This is the same as `dependency-excludes-range-of-compatible-versions` but some of the versions of `a` are incompatible for another reason e.g. dependency on non-existant package `d`.",
"description": "There is a non-contiguous range of compatible versions for the requested package `a`, but another dependency `c` excludes the range. This is the same as `dependency-excludes-range-of-compatible-versions` but some of the versions of `a` are incompatible for another reason e.g. dependency on non-existent package `d`.",
"root": {
"requires": [
"a",
Expand Down
2 changes: 1 addition & 1 deletion scenarios/prereleases.json
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@
"packages": {
"a": "0.1.0a1"
},
"explanation": "Since there are only prerelease versions of `a` available, a prerelease is allowed. Since the user did not explictly request a pre-release, pre-releases at the boundary should not be selected."
"explanation": "Since there are only prerelease versions of `a` available, a prerelease is allowed. Since the user did not explicitly request a pre-release, pre-releases at the boundary should not be selected."
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/packse/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def _add_serve_parser(subparsers):
parser.add_argument(
"--offline",
action="store_true",
help="Run the index servers without fallback acccess to the real PyPI.",
help="Run the index servers without fallback access to the real PyPI.",
)
_add_shared_arguments(parser)

Expand Down Expand Up @@ -444,7 +444,7 @@ def _add_index_parser(subparsers):
up.add_argument(
"--offline",
action="store_true",
help="Run the index server without acccess to the real PyPI.",
help="Run the index server without access to the real PyPI.",
)
up.set_defaults(call=_call_index_up)

Expand Down
2 changes: 1 addition & 1 deletion src/packse/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create_from_template(


def parse_loop(path: Path, variables: dict[str, Any]):
# This implementatation is pretty dubious and certain to fail on edge-cases
# This implementation is pretty dubious and certain to fail on edge-cases
scope = variables
scopes = []
matches = re.findall(r"\[\[(.*?)\]\]", str(path))
Expand Down
2 changes: 1 addition & 1 deletion vendor/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Vendored build dependencies

This directoy contains vendored build dependencies for running a package index in offline mode while allowing
This directory contains vendored build dependencies for running a package index in offline mode while allowing
package scenarios to be built and installed.

0 comments on commit 3dd7c2d

Please sign in to comment.