nasa / fprime-tools

F´ Python tooling and helpers.
https://github.com/nasa/fprime
Apache License 2.0
21 stars 39 forks source link

lestarch: switching version checking to use requirements.txt #85

Closed LeStarch closed 2 years ago

LeStarch commented 2 years ago
Originating Project/Creator
Affected Component
Affected Architectures(s)
Related Issue(s)
Has Unit Tests (y/n)
Builds Without Errors (y/n)
Unit Tests Pass (y/n)
Documentation Included (y/n)

Change Description

With the switch to requirements.txt in F´ this switches the version checking as well.

github-actions[bot] commented 2 years ago

@check-spelling-bot Report

Unrecognized words, please review:

Previously acknowledged words that are now absent ASer Autocoders deepcopy Dxyz filecmp isnumeric IUF LGTM mkdtemp params Prm README rmd Serializables sset tempfile Tlm
To accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands ... in a clone of the [git@github.com:LeStarch/fprime-tools.git](https://github.com/LeStarch/fprime-tools.git) repository on the `update/requirements-version-checking` branch: ``` update_files() { perl -e ' my @expect_files=qw('".github/actions/spelling/expect.txt"'); @ARGV=@expect_files; my @stale=qw('"$patch_remove"'); my $re=join "|", @stale; my $suffix=".".time(); my $previous=""; sub maybe_unlink { unlink($_[0]) if $_[0]; } while (<>) { if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; } next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print; }; maybe_unlink($previous);' 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 = ); 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/fprime-community/fprime-tools/issues/comments/1155622041" > "$comment_json" comment_body=$(mktemp) jq -r .body < "$comment_json" > $comment_body rm $comment_json patch_remove=$(perl -ne 'next unless s{^(.*)
$}{$1}; print' < "$comment_body") patch_add=$(perl -e '$/=undef; $_=<>; s{
.*}{}s; s{^#.*}{}; s{\n##.*}{}; s{(?:^|\n)\s*\*}{}g; s{\s+}{ }g; print' < "$comment_body") update_files rm $comment_body git add -u ```
lgtm-com[bot] commented 2 years ago

This pull request introduces 1 alert when merging 08a14b7b7de71b369d12094213740256b7789c6a into df44b4468648ab5d1a03cb3941c92e472389fa66 - view on LGTM.com

new alerts:

lgtm-com[bot] commented 2 years ago

This pull request introduces 1 alert when merging 3e95d21cdfd7685fc773771084392fb29094c380 into df44b4468648ab5d1a03cb3941c92e472389fa66 - view on LGTM.com

new alerts: