Skip to content

Commit 3c5ac25

Browse files
committed
Move from black formatting to yapf
1 parent a44e1ba commit 3c5ac25

File tree

6 files changed

+147
-186
lines changed

6 files changed

+147
-186
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
cp coldcore coldcore.py
2828
echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
2929
30-
- name: black
31-
run: black --check coldcore
30+
- name: yapf
31+
run: yapf --diff coldcore
3232

3333
- name: flake8
3434
run: |

.style.yapf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[style]
2+
based_on_style = yapf
3+
column_limit = 88
4+
indent_width = 4
5+
coalesce_brackets = true
6+
split_all_top_level_comma_separated_values = true
7+
split_before_first_argument = true

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- Move from `black` to `yapf` for formatting
12

23
## 0.4.1
34

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test: docker-build
1010

1111
lint: docker-build
1212
docker run --rm -v $$(pwd):/src:ro coldcore/test flake8 coldcore
13-
docker run --rm -v $$(pwd):/src:ro coldcore/test black --check coldcore
13+
docker run --rm -v $$(pwd):/src:ro coldcore/test yapf --diff coldcore
1414
docker run --rm -v $$(pwd):/src:ro coldcore/test mypy coldcore
1515

1616
.PHONY: docker-build lint test

0 commit comments

Comments
 (0)