Skip to content
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
25 changes: 25 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Codespell configuration is within setup.cfg
---
name: Codespell

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@v1
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion docs/_docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ req = (client.NewRequest("PATCH", response.GetRelativeLocation()).
blobResponse = client.Do(req)
```

Finally, valiate the uploaded blob content.
Finally, validate the uploaded blob content.

```python
req = client.NewRequest("GET", "/v2/<name>/blobs/<digest>",
Expand Down
2 changes: 1 addition & 1 deletion opencontainers/digest/digest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def sepIndex(self):
Return the index of the : separator.

return the index of the : separator or the index
that separtes the extra content provided in the algorithm name.
that separates the extra content provided in the algorithm name.
"""
try:
algorithm, encoded = (self).split(":")
Expand Down
4 changes: 2 additions & 2 deletions opencontainers/distribution/reggie/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def NewRequest(self, method, path, *opts):
# Set default namespace, and fill in string replacements
namespace = rc.Name or self.Config.DefaultName

# Substitute known path paramaters
# Substitute known path parameters
replacements = {
"<name>": namespace,
"<reference>": rc.Reference,
Expand All @@ -199,7 +199,7 @@ def NewRequest(self, method, path, *opts):

def Do(self, req):
"""
Execut a request.
Execute a request.

Given a request (an instance of the RequestClient, execute the request
and return a response.
Expand Down
4 changes: 2 additions & 2 deletions opencontainers/tests/test_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def test_descriptor(tmp_path):
with pytest.raises(ErrDigestInvalidFormat):
desc.load(no_hash)

# expected failure: digest does not match pattern (invalid aglorithm characters)
# expected failure: digest does not match pattern (invalid algorithm characters)
with pytest.raises(ErrDigestInvalidFormat):
desc.load(invalid_algchars)

Expand All @@ -226,7 +226,7 @@ def test_descriptor(tmp_path):
# expected success: valid URL entry
desc.load(valid_urls)

# expected failure: urls does not match format (invalide url characters)
# expected failure: urls does not match format (invalid url characters)
with pytest.raises(SystemExit):
desc.load(invalid_urls)

Expand Down
2 changes: 1 addition & 1 deletion opencontainers/tests/test_imagelayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_imagelayout(tmp_path):
"""test creation of an opencontainers ImageLayout"""
layout = ImageLayout()

# expected faulure: imageLayoutVersion does not match pattern or type
# expected failure: imageLayoutVersion does not match pattern or type
with pytest.raises(SystemExit):
layout.load({"imageLayoutVersion": 1.0})

Expand Down
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
[metadata]
description_file = README.md

[codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = .git*,*.svg,*.css,*.min.*
check-hidden = true
ignore-regex = \bIntStruct\b
# ignore-words-list =