Skip to content

Commit

Permalink
chore: Switch from codespell to typos to check spelling (#227)
Browse files Browse the repository at this point in the history
* chore: Fix typos

* chore: Use `typos` on CI instead of `codespell`
  • Loading branch information
romac authored Jun 9, 2024
1 parent 9ae0a3f commit 3131656
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Codespell
name: Spelling
on:
pull_request:
push:
Expand All @@ -15,8 +15,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@v2
with:
skip: './code/target'
ignore_words_file: .github/codespell/words.txt

- uses: crate-ci/typos@master
2 changes: 1 addition & 1 deletion code/crates/cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl Args {
Ok(self.get_home_dir()?.join("config"))
}

/// get_config_file_path returns the configuration file path based on the command-ine arguments
/// get_config_file_path returns the configuration file path based on the command-line arguments
/// and the configuration folder.
pub fn get_config_file_path(&self) -> Result<PathBuf> {
Ok(self.get_config_dir()?.join(CONFIG_FILE))
Expand Down
4 changes: 2 additions & 2 deletions code/crates/test/tests/driver_extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use malachite_test::utils::*;
// `driver_steps_polka_previous_with_locked()
//
// - L44 with previously received polkaNil and entering prevote (due to timeoutPropose)
// `driver_steps_polka_nil_and_timout_propose()`
// `driver_steps_polka_nil_and_timeout_propose()`
//
// - L36 with previoustly received polkaValue and proposal, and entering prevote (due to received proposal)
// `driver_steps_polka_value_then_proposal()`
Expand Down Expand Up @@ -846,7 +846,7 @@ fn driver_steps_polka_previous_with_no_locked() {
// L57 - v3 receives timeout propose, prevotes for nil (step prevote)
// L44 - polkaNil is replayed and v3 precommits for nil (step precommit)
#[test]
fn driver_steps_polka_nil_and_timout_propose() {
fn driver_steps_polka_nil_and_timeout_propose() {
let [(v1, _sk1), (v2, _sk2), (v3, sk3)] = make_validators([2, 3, 2]);
let (my_sk, my_addr) = (sk3.clone(), v3.address);

Expand Down
2 changes: 1 addition & 1 deletion code/crates/vote/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Infrastructre for tallying votes within the consensus engine.
//! Infrastructure for tallying votes within the consensus engine.
#![no_std]
#![forbid(unsafe_code)]
Expand Down
4 changes: 2 additions & 2 deletions specs/quint/specs/reset.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def valid (b: L2Block) : bool =
| Proof(bp) => proofOK (L1.last().time,
L1.last().l2forkID,
L1.last().unfulfilled_updates,
bp) // whether a proof is accepted is time-dependend
bp) // whether a proof is accepted is time-dependent
}


Expand Down Expand Up @@ -656,4 +656,4 @@ action old_reset = all {



}
}

0 comments on commit 3131656

Please sign in to comment.