From 4f6ad6a53080236a5edc12941fbe45b88e75b07a Mon Sep 17 00:00:00 2001 From: Jan Koppe Date: Wed, 15 Apr 2020 21:00:04 +0200 Subject: [PATCH] linting; some dependencies --- .travis.yml | 7 +++++++ portier/Dockerfile | 5 ++++- portier/requirements.txt | 2 ++ setup.cfg | 3 +++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .travis.yml create mode 100644 portier/requirements.txt create mode 100644 setup.cfg diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4732218 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: python +python: + - "3.7" + - "3.8" +install: "pip install -r portier/requirements.txt" +script: + - flake8 diff --git a/portier/Dockerfile b/portier/Dockerfile index 839105f..aa4902b 100644 --- a/portier/Dockerfile +++ b/portier/Dockerfile @@ -1 +1,4 @@ -FROM python:3.8 +FROM python:3.8-alpine +WORKDIR /app +ADD . /app +RUN pip install -r requirements.txt diff --git a/portier/requirements.txt b/portier/requirements.txt new file mode 100644 index 0000000..a0410b5 --- /dev/null +++ b/portier/requirements.txt @@ -0,0 +1,2 @@ +django>=3.0 +celery>=4.4 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..1e30e03 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[flake8] +exclude = .git,*migrations* +max-line-length = 120