From 96a67960674a2c8a4ba622135987b189a5c4d6b6 Mon Sep 17 00:00:00 2001 From: shimun Date: Fri, 23 Nov 2018 15:50:13 +0100 Subject: [PATCH] auto format code, cache deps --- .drone.yml | 12 +++++++++++- .gitignore | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.drone.yml b/.drone.yml index b4ab569..de8407e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,8 +1,14 @@ pipeline: + pretty: + image: unibeautify/autopep8 + commands: + - autopep8 imports -r --in-place + - autopep8 main.py --in-place modules: image: python:3.5 commands: - - ./make-modules.sh + - mkdir -p .pip3 + - ./make-modules.sh --cache-dir .pip3 package: image: kramos/alpine-zip commands: @@ -15,3 +21,7 @@ pipeline: secrets: [webdav_password] when: event: tag + clean: + image: kramos/alpine-zip + commands: + - rm -rf modules diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..86b519f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +modules +.pip3 +seafile.zip