From ed5bc39beba68cc213ca619673bcf57ff28d4e2e Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Sun, 12 Sep 2021 11:52:27 +0200 Subject: [PATCH] Test adding black to CI/CD --- .drone.yml | 5 +++++ pyproject.toml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.drone.yml b/.drone.yml index 46ed050..412493e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,3 +12,8 @@ steps: image: python:3.9-slim commands: - python test.py + + - name: black + image: pyfound/black:21.7b0 + commands: + - black --check --diff --quiet . diff --git a/pyproject.toml b/pyproject.toml index 374b58c..2582f18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,3 +4,7 @@ requires = [ "wheel" ] build-backend = "setuptools.build_meta" + +[tool.black] +line-length = 79 +target-version = ["py38"]