use pretest hook for linting