From 9e58dcec747609c3056cf304e2bcc606328cbb51 Mon Sep 17 00:00:00 2001 From: Stefan Foulis Date: Sat, 23 Jan 2021 00:51:00 +0100 Subject: [PATCH] Add black_version to github action --- action.yml | 4 ++++ action/Dockerfile | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 action/Dockerfile diff --git a/action.yml b/action.yml index 59b16a9fb6c..d46d438dfaf 100644 --- a/action.yml +++ b/action.yml @@ -6,6 +6,10 @@ inputs: description: "Black input arguments." required: false default: "" + version: + description: "Version of black to use. E.g \"==20.8b1\"" + required: false + default: "" branding: color: "black" icon: "check-circle" diff --git a/action/Dockerfile b/action/Dockerfile deleted file mode 100644 index eb2209940db..00000000000 --- a/action/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM python:3 - -ENV PYTHONDONTWRITEBYTECODE 1 -ENV PYTHONUNBUFFERED 1 - -RUN pip install --upgrade --no-cache-dir black - -COPY entrypoint.sh /entrypoint.sh - -ENTRYPOINT ["/entrypoint.sh"]