diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 07f115f..1aa0131 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,3 +20,10 @@ jobs: python-version: '3.12' - run: python -m pip install reuse - run: python -m reuse lint + typos: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@v1 diff --git a/docs/index.rst b/docs/index.rst index dd3d7a7..5d8ac15 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -17,7 +17,7 @@ This module differs from other similar modules by providing a streaming-capable implementation (data can be passed to the hash object in chunnks and a digest extracted at the end) and by providing an interface compatible to the hash functions provided by the -:mod:`hashlib` standard library module. Binary wheels are provied for +:mod:`hashlib` standard library module. Binary wheels are provided for all supported Python releases on the most common platforms. More platforms can be added to the build job as needed. @@ -62,7 +62,7 @@ respectively. These functions take two optional parameters: bytes-like object. It can be passed only as positional argument. * **key** -- key for keyed hashing, which must be a bytes-like - object. The passed key can be up to 16 bytes in lenght. Shorter keys + object. The passed key can be up to 16 bytes in length. Shorter keys are zero padded to 16 bytes. It can be passed only as a keyword argument. diff --git a/siphash24.pyx.in b/siphash24.pyx.in index 05a6e8e..64ad42c 100644 --- a/siphash24.pyx.in +++ b/siphash24.pyx.in @@ -94,7 +94,7 @@ cdef class siphash{{variant}}: return hexlify(hash) def intdigest(self): - """Return the digest calue as a signed 64bit integer.""" + """Return the digest value as a signed 64bit integer.""" cdef CSipHash state memcpy(&state, &self.state, sizeof(state)) cdef uint64_t hash = c_siphash_finalize_{{variant}}(&state)