Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffa5eeb

Browse files
committed
Add circleci job to check code formatting
1 parent 059aa75 commit ffa5eeb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
version: 2
22

33
jobs:
4+
check-code-formatting:
5+
docker:
6+
- image: circleci/python:3.7-stretch-node-browsers
7+
8+
steps:
9+
- checkout
10+
- run:
11+
name: Install black
12+
command: 'sudo pip install black'
13+
- run:
14+
name: Check formatting with black
15+
command: 'black --check .'
16+
417
# Core
518
python-2.7-core:
619
docker:
@@ -341,6 +354,9 @@ jobs:
341354

342355
workflows:
343356
version: 2
357+
code_formatting:
358+
jobs:
359+
- check-code-formatting
344360
dev_build:
345361
jobs:
346362
- plotlyjs_dev_build

0 commit comments

Comments
 (0)