diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 000000000..b74b2cee9 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,28 @@ +name: Spell Check + +on: + pull_request: + push: + branches: + - main + - master + +jobs: + spellcheck: + name: Run codespell + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Install codespell + run: pip install codespell + + - name: Run codespell + run: codespell --skip="yarn.lock,package-lock.json,node_modules,build" diff --git a/docs/beaker/README.md b/docs/beaker/README.md index 0d15ab771..1e658c76e 100644 --- a/docs/beaker/README.md +++ b/docs/beaker/README.md @@ -225,10 +225,10 @@ To create the contract entrypoint for migration, first, define `MigrateMsg` in ` pub struct MigrateMsg {} ``` -With MigrateMsg defined we need to update `contract.rs`. First update the import from `crate::msg` to include `MigrateMsg`: +With MigrateMsg defined we need to update `contract.rs`. First update the import from `create::msg` to include `MigrateMsg`: ```rust -use crate::msg::{CountResponse, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg}; +use create::msg::{CountResponse, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg}; ``` ```rust @@ -340,7 +340,7 @@ await contract.counter.signer(account.test1).execute({ increment: {} }); await contract.counter.query({ get_count: {} }); ``` -You can find avaialable methods for the aforementioned instances here: +You can find available methods for the aforementioned instances here: - [Account](console/classes//Account.md#methods-1) - [Contract](./console/classes//Contract.md#methods-1) diff --git a/docs/beaker/commands/beaker_wasm.md b/docs/beaker/commands/beaker_wasm.md index b0e93be55..a0855e206 100644 --- a/docs/beaker/commands/beaker_wasm.md +++ b/docs/beaker/commands/beaker_wasm.md @@ -218,7 +218,7 @@ Arguments: * ` `Name of the contract to instantiate -* `-l/--label