Skip to content

Commit

Permalink
Typos and typos ci (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad authored Nov 18, 2024
1 parent 8ebfb1f commit 17e8922
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 9 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Typos Check
on:
pull_request:
workflow_dispatch:

jobs:
run:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4

- name: Check spelling
uses: crate-ci/typos@master
with:
config: ./_typos.toml
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ All notable changes to MiniJinja are documented here.

## 2.3.1

- Fixes a regresion in `PartialEq` / `Eq` in `Value` caused by changes
- Fixes a regression in `PartialEq` / `Eq` in `Value` caused by changes
in 2.3.0. #584

## 2.3.0
Expand Down Expand Up @@ -133,9 +133,9 @@ All notable changes to MiniJinja are documented here.
## 2.0.0

This is a major update to MiniJinja that changes a lot of core internals and
cleans up some APIs. In particular it resolves somes limitations in the engine
cleans up some APIs. In particular it resolves some limitations in the engine
in relation to working with dynamic objects, unlocks potentials for future
performance improvments and enhancements.
performance improvements and enhancements.

It's very likely that you will need to do changes to your code when upgrading,
particular when implementing dynamic objects. In short:
Expand Down Expand Up @@ -247,7 +247,7 @@ For upgrade instructions read the [UPDATING](UPDATING.md) guide.
includes or extends from paths not explicitly allowlisted. #432
- Added support for `Error::display_debug_info` which displays just the
debug info, same way as alternative display on the error does. #420
- Added the `namspace()` function from Jinja2 and the ability to assign
- Added the `namespace()` function from Jinja2 and the ability to assign
to it via `{% set %}`. #422
- `minijinja-autoreload` now supports `on_should_reload_callback` which
lets one register a callback to be called just before an auto reload
Expand Down
2 changes: 1 addition & 1 deletion UPDATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ let value = Value::from_seq_object(SimpleDynamicSeq(...));
Because the default object representation is a `Map`, we need to
change it to `ObjectRepr::seq` in the `repr` method. As sequences
iterate over their values, we can use the convenient `Enumerator::Seq`
enumerator which instructs the engine to sequentually iterate over
enumerator which instructs the engine to sequentially iterate over
the object from `0` to the given `length`. Otherwise the interface
is the same as with the map above, which means that rather than
implementing `get_item` you now also implement `get_value` which
Expand Down
9 changes: 9 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[default]
extend-ignore-identifiers-re = ["workd", "entit", "FoO", "mis", "flate"]

[default.extend-words]
# these are false positives in data/examples
ridiculus = "ridiculus"
facilisi = "facilisi"
Facilisi = "Facilisi"
nam = "nam"
2 changes: 1 addition & 1 deletion examples/syntax-highlighting/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax-highlighting

An example that shows how to register a function for syntax highlighting wiht syntect.
An example that shows how to register a function for syntax highlighting with syntect.

```console
$ cargo run
Expand Down
2 changes: 1 addition & 1 deletion minijinja-contrib/src/filters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn pluralize(v: Value, singular: Option<Value>, plural: Option<Value>) -> Re
}
}

/// Choses a random element from a sequence or string.
/// Chooses a random element from a sequence or string.
///
/// The random number generated can be seeded with the `RAND_SEED`
/// global context variable.
Expand Down
2 changes: 1 addition & 1 deletion minijinja/src/compiler/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ impl<'a> Parser<'a> {
// in parts because the opcodes can only express 2**16 as argument
// count.
if args.len() > 2000 {
syntax_error!("Too many aguments in function call")
syntax_error!("Too many arguments in function call")
}
}

Expand Down
2 changes: 1 addition & 1 deletion minijinja/src/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ mod builtins {
/// ```jinja
/// example:
/// config:
/// {{ global_conifg|indent(2) }} # does not indent first line
/// {{ global_config|indent(2) }} # does not indent first line
/// {{ global_config|indent(2,true) }} # indent whole Value with two spaces
/// {{ global_config|indent(2,true,true)}} # indent whole Value and all blank lines
/// ```
Expand Down

0 comments on commit 17e8922

Please sign in to comment.