Skip to content

Commit 1eef8e2

Browse files
authored
Merge pull request #420 from grahamalama/install-black
Add black to CI & project dependencies
2 parents 5fbfb77 + 8ed7a7d commit 1eef8e2

File tree

7 files changed

+280
-180
lines changed

7 files changed

+280
-180
lines changed

.github/workflows/pythonapp.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18-
1918
steps:
2019
- uses: actions/checkout@v2
2120
- name: Set up Python 3.8
@@ -33,6 +32,11 @@ jobs:
3332
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3433
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3534
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35+
- name: Check formatting with black
36+
run: |
37+
# exit if any files still need formatting
38+
bash script/format --check
39+
continue-on-error: true
3640
- name: Test with pytest
3741
run: |
3842
pip install pytest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Editors
22
.idea/
3+
.vscode/settings.json
34

45
# Environments
56
.env

Pipfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7+
black = "==19.10b0"
8+
pytest = "*"
79

810
[packages]
911
streamlit = "*"
1012
pandas = "*"
1113
numpy = "*"
12-
pytest = "*"
1314
altair = "*"
1415
dash = "*"
1516
dash-bootstrap-components = "*"
@@ -18,3 +19,6 @@ PyYAML = "*"
1819

1920
[requires]
2021
python_version = "3.7"
22+
23+
[pipenv]
24+
allow_prereleases = true

0 commit comments

Comments
 (0)