From 4809747952d1dc40c2efd75078815bd0a72e88b6 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 18 Apr 2023 16:10:20 +0200 Subject: [PATCH] Check for typos on CI (#2918) * Check for typos on CI * Fix all typos --- .github/workflows/typos.yml | 17 +++++++++++++++++ CHANGELOG.md | 10 +++++----- Cargo.toml | 2 +- README.md | 2 +- _typos.toml | 10 ++++++++++ crates/eframe/src/native/epi_integration.rs | 2 +- crates/eframe/src/web/backend.rs | 4 ++-- crates/egui/src/containers/combo_box.rs | 2 +- crates/egui/src/grid.rs | 2 +- crates/egui/src/painter.rs | 4 ++-- crates/egui/src/style.rs | 2 +- crates/egui/src/ui.rs | 2 +- crates/egui/src/widget_text.rs | 8 ++++---- crates/egui_demo_lib/src/demo/about.rs | 2 +- crates/egui_demo_lib/src/demo/scrolling.rs | 2 +- crates/egui_demo_lib/src/demo/table_demo.rs | 6 +++--- crates/egui_demo_lib/src/demo/tests.rs | 2 +- crates/egui_demo_lib/src/lib.rs | 2 +- crates/epaint/src/shape.rs | 2 +- crates/epaint/src/text/text_layout.rs | 4 ++-- crates/epaint/src/text/text_layout_types.rs | 2 +- docs/egui_demo_app.js | 4 ++-- 22 files changed, 60 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/typos.yml create mode 100644 _typos.toml diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 000000000..c3bc84125 --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,17 @@ +# https://github.com/crate-ci/typos +# Add exceptions to _typos.toml +# install and run locally: cargo install typos-cli && typos + +name: Spell Check +on: [pull_request] + +jobs: + run: + name: Spell Check + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v2 + + - name: Check spelling of entire workspace + uses: crate-ci/typos@master diff --git a/CHANGELOG.md b/CHANGELOG.md index a69d65fbb..41a29c524 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -390,7 +390,7 @@ NOTE: [`epaint`](crates/epaint/CHANGELOG.md), [`eframe`](crates/eframe/CHANGELOG * `Fonts::layout_job`: New text layout engine allowing mixing fonts, colors and styles, with underlining and strikethrough. * Added `ui.add_enabled(bool, widget)` to easily add a possibly disabled widget. * Added `ui.add_enabled_ui(bool, |ui| …)` to create a possibly disabled UI section. -* Added feature `"serialize"` separatedly from `"persistence"`. +* Added feature `"serialize"` separately from `"persistence"`. * Added `egui::widgets::global_dark_light_mode_buttons` to easily add buttons for switching the egui theme. * `TextEdit` can now be used to show text which can be selected and copied, but not edited. * Added `Memory::caches` for caching things from one frame to the next. @@ -405,7 +405,7 @@ NOTE: [`epaint`](crates/epaint/CHANGELOG.md), [`eframe`](crates/eframe/CHANGELOG * MSRV (Minimum Supported Rust Version) is now `1.54.0`. * By default, `DragValue`s no longer show a tooltip when hovered. Change with `Style::explanation_tooltips`. * Smaller and nicer color picker. -* `ScrollArea` will auto-shrink to content size unless told otherwise using `ScollArea::auto_shrink`. +* `ScrollArea` will auto-shrink to content size unless told otherwise using `ScrollArea::auto_shrink`. * By default, `Slider`'s `clamp_to_range` is set to true. * Renamed `TextEdit::enabled` to `TextEdit::interactive`. * `ui.label` (and friends) now take `impl ToString` as argument instead of `impl Into