Skip to content

Commit

Permalink
Merge pull request #15 from dandi/enh-codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt authored Nov 16, 2023
2 parents 6894eaf + f73d680 commit 3039882
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
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@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To calculate the checksum for a local zarr archive
zarrsum local <directory>
```

To calcuate the checksum for a remote (S3) zarr archive
To calculate the checksum for a remote (S3) zarr archive
```
zarrsum remote s3://your_bucket/prefix_to_zarr
```
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,8 @@ combine_as_imports = true
line-length = 100
target-version = ["py38"]
exclude='\.eggs|\.git|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist'

[tool.codespell]
skip = '.git,*.pdf,*.svg,poetry.lock'
#
# ignore-words-list = ''
2 changes: 1 addition & 1 deletion zarr_checksum/checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def generate_digest(self) -> ZarrDirectoryDigest:
directory.size for directory in self.directories
)

# Seralize json without any spacing
# Serialize json without any spacing
json = self.json(separators=(",", ":"))

# Generate digest
Expand Down

0 comments on commit 3039882

Please sign in to comment.