Closed jspaaks closed 3 years ago
The pep8 linting check fails but that's because those rules aren't helping me write clean code. E.g. the linelength of 79, how function calls break over multiple lines, the fact that you cannot have an empty line after a function signature.
committed the suggestions
Testing html output results in an error message:
$ pip install . ... $ fairtally --html results.html https://github.com/fair-software/howfairis https://gitlab.com/jspaaks/howfairis-livetest ... FileNotFoundError: [Errno 2] No such file or directory: '/home/erikt/anaconda3/envs/python37/lib/python3.7/site-packages/fairtally/data/index.html.template'
True, but will be fixed by #25. See also https://github.com/fair-software/fairtally/issues/26. Do you want me to fix it here as well? My guess is we're eventually going to merge #25 anyway right?
Thanks for reviewing, merged on behalve of @jspaaks
In this PR:
fairtally
accept urls via the commandline as arguments (#3)tqdm
(#23)Results are stored as array of object with keys (#5):
--html
and--json
options. If specified, fairtally will write to a json file or to an html file, respectively. html writing uses jinja2 templating anddata/index.html.template
.For testing, you can put in your own URLs, but for convenience, the snippet below gives you the 10 URLs from the Research Software Directory which were changed most recently:
To test:
Should show a progress bar and print results at the end
If you have
jq
installed, you can pipe the results into it, like so:or write to a json file:
or write to an html file:
Here's what that looks like in the browser: