From 3fe4ffc6129e4c5373330d5316952a53ce959fb9 Mon Sep 17 00:00:00 2001 From: Quentin Ferrand Date: Thu, 21 Apr 2022 16:31:10 +0200 Subject: [PATCH] . --- .drone.yml | 70 ++++++++++++++++++++--------------------- .pre-commit-config.yaml | 2 +- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.drone.yml b/.drone.yml index c4f59ab..c5fafba 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,47 +7,47 @@ steps: - name: test image: python:latest commands: - - pip install -q --upgrade pre-commit + - pip install -q --upgrade pre-commit pylint pydantic pytest - pre-commit run --all-files # - flake8 --ignore=E501,W503,E265 # - mypy --ignore-missing-imports ./tenkan/ # - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/ # - pytest ./tests/ - #- name: publish_pypi - # image: plugins/pypi - # settings: - # username: - # from_secret: pypi_username - # password: - # from_secret: pypi_password - # when: - # branch: - # - master - # - #- name: push_docker - # image: plugins/docker - # settings: - # username: - # from_secret: docker_username - # password: - # from_secret: docker_password - # repo: takaoni/tenkan - # tags: latest - # when: - # branch: - # - master - # - #- name: deploy_kube - # kube: - # image: takaoni/drone-kube - # template: apps/tenkan.yaml - # namespace: gemini - # server: - # from_secret: kube_server - # when: - # branch: - # - master +- name: publish_pypi + image: plugins/pypi + settings: + username: + from_secret: pypi_username + password: + from_secret: pypi_password + when: + branch: + - master + +- name: push_docker + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: takaoni/tenkan + tags: latest + when: + branch: + - master + +- name: deploy_kube + kube: + image: takaoni/drone-kube + template: apps/tenkan.yaml + namespace: gemini + server: + from_secret: kube_server + when: + branch: + - master host_aliases: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc7ae2e..da92ebd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: hooks: - id: black name: black (python) - args: ['-S'] + args: ['-S', '-l 200'] - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.931 hooks: