Skip to content

Commit

Permalink
Merge pull request #164 from sommersoft/patch_black_check
Browse files Browse the repository at this point in the history
Patch: Add Patchfile To Add Black Code Style Check To build.yml
  • Loading branch information
kattni authored Apr 7, 2020
2 parents 8685aa9 + c836947 commit 4ea14fb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions patches/0001-build.yml-add-black-formatting-check.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From e725354300a8c8b9cdfcca9e8345568acee96d85 Mon Sep 17 00:00:00 2001
From: sommersoft <sommersoft@gmail.com>
Date: Tue, 7 Apr 2020 15:02:31 -0500
Subject: [PATCH] build.yml: add black formatting check

---
.github/workflows/build.yml | 3 +++
1 file changed, 3 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1dad804..b6977a9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -44,4 +44,7 @@ jobs:
- name: Library version
run: git describe --dirty --always --tags
+ - name: Check formatting
+ run: |
+ black --check --target-version=py35 .
- name: PyLint
run: |
--
2.17.1

0 comments on commit 4ea14fb

Please sign in to comment.