follow README and this will run puppet-lint against *.pp files before a commit transaction. warnings are ok, errors fail the commit.