Skip to content

Commit

Permalink
Fix all remaining spelling errors
Browse files Browse the repository at this point in the history
- Add `sdist` to expect.txt and reorder alphabetically
- Disable spellchecking on README URLs
  • Loading branch information
quantum9Innovation committed Jul 20, 2021
1 parent 17a2162 commit 814a334
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
len
elif
SIRD
ncol
borderaxespad
SIHRD
getfile
abspath
borderaxespad
currentframe
elif
getfile
len
ncol
sdist
SIHCR
SIRD
SIHRD
SIRD
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ contributions. Please see
If you plan on using epispot in your project, please abide by the GPLv3 license. This requires that any changes you make to epispot must be open-sourced under the GPLv3 license as well and that you give credit to the author, which you can do by citing the project in your research, linking back to the original repository, or mentioning the author @quantum9innovation.

For research, you can also use epispot's DOI to reference the project:
> [![DOI](https://zenodo.org/badge/280527664.svg)](https://zenodo.org/badge/latestdoi/280527664)
> [![DOI](https://zenodo.org/badge/280527664.svg)](https://zenodo.org/badge/latestdoi/280527664) <!-- spellcheck: disable -->
The recommended citation for epispot is:
> quantum9innovation (2021, April 2). epispot/epispot: (Version 2.1.0).
Expand Down

1 comment on commit 814a334

@github-actions
Copy link

@github-actions github-actions bot commented on 814a334 Jul 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@check-spelling-bot Report

Unrecognized words, please review:

  • bbox
  • bdist
  • Cov
  • Covsir
  • cri
  • fdfc
  • garrettj
  • GPLv
  • hos
  • Phy
  • urls
  • XDl
To accept these unrecognized words as correct, run the following commands

... in a clone of the git@github.com:epispot/epispot.git repository
on the check-spelling branch:

update_files() {
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
use File::Basename qw(dirname);
make_path (dirname($new_expect_file));
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"$patch_add"');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a)."-".$a cmp lc($b)."-".$b} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;
system("git", "add", $new_expect_file);
'
}

comment_json=$(mktemp)
curl -L -s -S \
  --header "Content-Type: application/json" \
  "https://api.github.com/repos/epispot/epispot/comments/53745581" > "$comment_json"
comment_body=$(mktemp)
jq -r .body < "$comment_json" > $comment_body
rm $comment_json

patch_add=$(perl -e '$/=undef;
$_=<>;
s{<details>.*}{}s;
s{^#.*}{};
s{\n##.*}{};
s{(?:^|\n)\s*\*}{}g;
s{\s+}{ }g;
print' < "$comment_body")
  
update_files
rm $comment_body
git add -u

Please sign in to comment.