This is not possible in the current version of Amper standalone. You will need extensibility for this (plugins/custom tasks) which we're actively working on.
Note that we're using ktlint as one of the plugin studies to design extensibility in Amper, so we'll make sure we support this case. Please stay tuned!