Skip to content

Commit

Permalink
Add typos config, CI
Browse files Browse the repository at this point in the history
This is added to the existing CI in preparation for the upcoming
transition to the typical Linebender CI.
  • Loading branch information
waywardmonkeys committed Dec 22, 2024
1 parent cd83264 commit 79490b6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,12 @@ jobs:

- name: Rust tests on PowerPC (big endian)
run: cross test --target powerpc-unknown-linux-gnu

# If this fails, consider changing your text or adding something to .typos.toml.
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: check typos
uses: crate-ci/[email protected]
32 changes: 32 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See the configuration reference at
# https://github.com/crate-ci/typos/blob/master/docs/reference.md

# Corrections take the form of a key/value pair. The key is the incorrect word
# and the value is the correct word. If the key and value are the same, the
# word is treated as always correct. If the value is an empty string, the word
# is treated as always incorrect.

# Match Identifier - Case Sensitive
[default.extend-identifiers]
ba = "ba"
curr_iy = "curr_iy"
flate2 = "flate2"
iy = "iy"
iy0 = "iy0"
iy1 = "iy1"
numer = "numer"
numer_a = "numer_a"
numer_b = "numer_b"
PNGs = "PNGs"

# Match Inside a Word - Case Insensitive
[default.extend-words]

[files]
# Include .github, .cargo, etc.
ignore-hidden = false
extend-exclude = [
# /.git isn't in .gitignore, because git never tracks it.
# Typos doesn't know that, though.
"/.git",
]
2 changes: 1 addition & 1 deletion path/src/stroker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ impl PathStroker {
if valid_divide {
if intersect_ray_type == IntersectRayType::CtrlPt {
// the intersection of the tangents need not be on the tangent segment
// so 0 <= numerA <= 1 is not necessarily true
// so 0 <= numer_a <= 1 is not necessarily true
quad_points.quad[1].x =
start.x * (1.0 - numer_a) + quad_points.tangent_start.x * numer_a;
quad_points.quad[1].y =
Expand Down

0 comments on commit 79490b6

Please sign in to comment.