Commit graph

1292 commits

Author SHA1 Message Date
Ed Page
af90817e50 feat(dict): extend-ignore-identifiers-re support
This opens the door for users to provide patterns for identifiers that
are always valid.  The key limitation is "identifiers".  Run `typos
--identifiers` to verify what you are trying to write the regex for.

Fixes #651
2023-03-17 22:40:55 -05:00
Ed Page
03286f0f82 chore: Release 2023-03-16 05:22:42 -05:00
Ed Page
179ecc3d44 docs: Update changelog 2023-03-16 05:22:24 -05:00
Ed Page
0366715612
Merge pull request #692 from epage/rename
chore: Update to anstream
2023-03-16 10:31:34 -05:00
Ed Page
52e1743c58 chore: Update to anstream 2023-03-16 05:07:38 -05:00
Ed Page
57502b53cc chore: Release 2023-03-16 03:47:08 -05:00
Ed Page
33df8ce125 docs: Update changelog 2023-03-16 03:46:57 -05:00
Ed Page
0469295a01
Merge pull request #691 from epage/commit
fix(dict): Allow commitish
2023-03-16 07:44:54 -05:00
Ed Page
720bd7b28c fix(dict): Allow commitish
Fixes #690
2023-03-16 03:20:57 -05:00
Ed Page
9504315f7e chore: Update Styled pattern 2023-03-14 08:22:10 -05:00
Ed Page
dc0eafc7e5 chore: Release 2023-03-14 02:14:39 -05:00
Ed Page
2dcc0f0f8c docs: Update changelog 2023-03-14 02:14:31 -05:00
Ed Page
29e640b914
Merge pull request #688 from epage/anstream
fix: Improve color env variable support
2023-03-15 09:23:10 -05:00
Ed Page
3a29410c1b fix: Improve color env variable support
- `CLICOLOR=1` now works correctly
- `NO_COLOR=` now works correctly
- Auto-enable colors in CI


For running `typos` on the Linux kernel (176,210 typos to be printed), we went from 20.082s to
<20.450s.  Where in that range is unclear due to jitter in my system.
```console
$ hyperfine -L typos ./typos-main,./typos-anstream "{typos} ../../../linux" -i
Benchmark 1: ./typos-main ../../../linux
  Time (mean ± σ):     20.082 s ±  0.111 s    [User: 39.668 s, System: 0.474 s]
  Range (min … max):   19.961 s … 20.331 s    10 runs

  Warning: Ignoring non-zero exit code.

Benchmark 2: ./typos-anstream ../../../linux
  Time (mean ± σ):     20.426 s ±  0.104 s    [User: 40.301 s, System: 0.523 s]
  Range (min … max):   20.316 s … 20.661 s    10 runs

  Warning: Ignoring non-zero exit code.

Summary
  './typos-main ../../../linux' ran
    1.02 ± 0.01 times faster than './typos-anstream ../../../linux'

$ CLICOLOR_FORCE=1 hyperfine -L typos ./typos-anstream "{typos} ../../../linux" -i
Benchmark 1: ./typos-anstream ../../../linux
  Time (mean ± σ):     20.262 s ±  0.075 s    [User: 39.961 s, System: 0.542 s]
  Range (min … max):   20.154 s … 20.420 s    10 runs

  Warning: Ignoring non-zero exit code.

$ CLICOLOR=0 hyperfine -L typos ./typos-anstream "{typos} ../../../linux" -i
Benchmark 1: ./typos-anstream ../../../linux
  Time (mean ± σ):     20.296 s ±  0.065 s    [User: 40.003 s, System: 0.565 s]
  Range (min … max):   20.169 s … 20.383 s    10 runs

  Warning: Ignoring non-zero exit code.
```
2023-03-13 23:01:45 -05:00
Ed Page
28e7f17a65 chore: Release 2023-03-13 20:45:44 -05:00
Ed Page
399088a38d docs: Update changelog 2023-03-13 20:45:03 -05:00
Ed Page
d58df3464d
Merge pull request #687 from WaterLemons2k/composite
feat(ci): Use composite to run action
2023-03-14 10:40:59 -05:00
WaterLemons2k
6855a78893 feat(ci): Use composite to run action
Using composite instead of docker to avoid building image,
it can make the action faster.

If the `typos` command doesn't exist, download and extract it.
2023-03-14 23:04:09 +08:00
Ed Page
6add7347fc docs(design): Note that we want non-transient, machine-independent config 2023-03-13 15:08:12 -05:00
Ed Page
043fdb59fa docs(contrib): Note the pinned dict issue 2023-03-13 15:05:30 -05:00
Ed Page
34289639e6 chore: Release 2023-03-13 12:33:33 -05:00
Ed Page
06431666a7 docs: Update changelog 2023-03-13 12:33:17 -05:00
Ed Page
4de8a7c366
Merge pull request #679 from phip1611/erronerous
feat(dict): Add: erronerous -> erroneous
2023-03-13 12:32:01 -05:00
Ed Page
6003b48885
Merge pull request #680 from phip1611/existend
change(dict): existend => existed,existent
2023-03-13 12:31:45 -05:00
Ed Page
3d0de83fb6 chore: Release 2023-03-13 11:57:15 -05:00
Ed Page
d772e29e8e docs: Update changelog 2023-03-13 11:56:52 -05:00
Ed Page
9f0eef4d5c
Merge pull request #684 from fuyufjh/master
fix: ignore go.mod by default
2023-03-13 11:53:57 -05:00
Eric Fu
4eeb460bb7 fix: ignore go.mod by default 2023-03-13 23:53:05 +08:00
Ed Page
27eab330e6
Merge pull request #686 from CalumY/Fix-pip-install
fix(pre-commit): Update package_dir
2023-03-13 10:29:55 -05:00
Calum Young
ec6998b34f Add package dir to setup.py 2023-03-13 15:24:09 +00:00
Philipp Schuster
cc26a8f693 change: existend => existed,existent 2023-03-12 14:42:09 +01:00
Philipp Schuster
500b9e3445 add: erronerous -> erroneous 2023-03-12 13:29:49 +01:00
Ed Page
eb55efadd4
Merge pull request #676 from jplatte/jplatte/empheral
feat(dict): Add empheral -> ephemeral
2023-03-10 09:21:14 -06:00
Ed Page
0ea9454d3a chore(ci): Update maturin CI 2023-03-08 11:35:43 -06:00
Ed Page
5f7454815c
Merge pull request #685 from epage/shuffle
fix(pre-commit): Separate cli from pre-commit package
2023-03-13 09:32:39 -05:00
Ed Page
13dbffcf7c fix(pre-commit): Separate cli from pre-commit package
Fixes #682
2023-03-08 10:19:20 -06:00
Jonas Platte
f8ec64571f
feat(dict): Add empheral -> ephemeral 2023-03-08 14:01:24 +01:00
Ed Page
a50bd03c2a chore: Release 2023-03-07 04:47:20 -06:00
Ed Page
cd11407e7e docs: Update changelog 2023-03-07 04:43:57 -06:00
Ed Page
5414608bf6 chore: Release 2023-03-07 03:18:52 -06:00
Ed Page
4935cf8b5a docs: Update changelog 2023-03-07 03:18:45 -06:00
Ed Page
b34ed584fa
Merge pull request #675 from epage/maturin
feat(ci): Experiment with publishing to PyPI
2023-03-08 21:12:45 -06:00
Ed Page
5f9d64bec0 chore(ci): Optimize the maturin run 2023-03-07 03:02:47 -06:00
Ed Page
f2868fa76e feat(ci): Experiment with publishing to PyPI
This is part of #649
2023-03-07 02:01:04 -06:00
Ed Page
d74fecd51c fix(ci): Release using Ubuntu 20.04 2023-03-05 21:10:06 -06:00
Ed Page
52d0ea7ddf chore: Release 2023-03-05 21:02:01 -06:00
Ed Page
40711f48a9 docs: Update changelog 2023-03-05 21:01:51 -06:00
Ed Page
fa3a3500c3 fix(ci): Release using Ubuntu 20.04 2023-03-05 21:01:14 -06:00
Ed Page
08a9831825 chore: Release 2023-03-05 20:43:46 -06:00
Ed Page
ac0cc9cbf0 docs: Update changelog 2023-03-05 20:43:28 -06:00