-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2258 from proddy/dev
minor changes
- Loading branch information
Showing
14 changed files
with
114 additions
and
19 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
Print makefile progress | ||
From https://stackoverflow.com/questions/451413/make-makefile-progress-indication | ||
""" | ||
|
||
import argparse | ||
import math | ||
import sys | ||
|
||
def main(): | ||
parser = argparse.ArgumentParser(description=__doc__) | ||
parser.add_argument("--stepno", type=int, required=True) | ||
parser.add_argument("--nsteps", type=int, required=True) | ||
parser.add_argument("remainder", nargs=argparse.REMAINDER) | ||
args = parser.parse_args() | ||
|
||
nchars = int(math.log(args.nsteps, 10)) + 1 | ||
fmt_str = "[{:Xd}/{:Xd}]({:6.2f}%)".replace("X", str(nchars)) | ||
progress = 100 * args.stepno / args.nsteps | ||
sys.stdout.write(fmt_str.format(args.stepno, args.nsteps, progress)) | ||
for item in args.remainder: | ||
sys.stdout.write(" ") | ||
sys.stdout.write(item) | ||
sys.stdout.write("\n") | ||
|
||
if __name__ == "__main__": | ||
main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
# run from root | ||
# make sure ncu is installed globally (https://github.com/raineorshine/npm-check-updates) | ||
# as well as GNUMake (make) and python3 | ||
|
||
cd interface | ||
ncu -u | ||
yarn set version stable | ||
yarn | ||
yarn format | ||
yarn lint | ||
|
||
cd ../mock-api | ||
ncu -u | ||
yarn set version stable | ||
yarn | ||
yarn format | ||
|
||
cd .. | ||
npx cspell "**" | ||
|
||
sh ./scripts/generate_csv_and_headers.sh |