Drone plugin to run pre-commit hooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

8 lines
187 B

FROM python:3
RUN mkdir -p /data/pre-commit-cache
ENV PRE_COMMIT_HOME=/data/pre-commit-cache
RUN pip install --no-cache-dir pre-commit==2.10.1
CMD ["pre-commit", "run", "--all-files"]