cernopendata / cernopendata-client

CERN Open Data command-line client
http://cernopendata-client.readthedocs.io/
GNU General Public License v3.0
10 stars 9 forks source link

Improve the run-tests shell script #64

Closed ParthS007 closed 4 years ago

ParthS007 commented 4 years ago

Later improvement: instead of having commands written twice, we could define shell functions like:


check_black () {
    black --check .
}

so that we can simply call check_black in appropriate places here...

In this way the commands to run will be defined in a single place (inside the shell function).

_Originally posted by @tiborsimko in https://github.com/cernopendata/cernopendata-client/pull/36#discussion_r503300017_