Developer - radiasoft/devops GitHub Wiki
To format Python code use the Black formatter through pykern.pkcli.fmt.
pykern fmt run <pathname>The above example will format the singular .py file that pathname contains, or if pathname is a directory it will format all .py files recursively
pykern fmt diff <pathname>diff will show you the diff between the file/dir in pathname and a formatted version of that file/dir, if there is any
pykern fmt check <pathname> check will trigger an exception if there is diff
Source in pykern.pkcli.ci
pykern ci check_printscheck_prints recursively checks repo for (naked) print and pkdp calls
pykern ci runrun will run continuous integration checks and tests. It calls check_prints, checks the formatting, and then runs pykern.pkcli.test.default_command