Test adding black to CI/CD
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
2021-09-12 11:52:27 +02:00
parent e2333b8916
commit ed5bc39beb
2 changed files with 9 additions and 0 deletions

View File

@@ -12,3 +12,8 @@ steps:
image: python:3.9-slim image: python:3.9-slim
commands: commands:
- python test.py - python test.py
- name: black
image: pyfound/black:21.7b0
commands:
- black --check --diff --quiet .

View File

@@ -4,3 +4,7 @@ requires = [
"wheel" "wheel"
] ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.black]
line-length = 79
target-version = ["py38"]