Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commit 95b6b0d

Browse files
committed
pipeline: install black via pipenv
1 parent 96be14a commit 95b6b0d

File tree

3 files changed

+133
-5
lines changed

3 files changed

+133
-5
lines changed

.github/workflows/python.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ jobs:
2424
- uses: actions/setup-python@v1
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
- run: pip install black==19.10b0
28-
- run: pip freeze
29-
- run: black --check .
27+
- run: pip install --upgrade pipenv==2020.8.13
28+
- run: pipenv install --python "$PYTHON_VERSION" --deploy --dev
29+
env:
30+
PYTHON_VERSION: ${{ matrix.python-version }}
31+
- run: pipenv graph
32+
- run: pipenv run black --check .
3033
tests:
3134
runs-on: ubuntu-18.04
3235
strategy:

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ numpy = "<1.19.0"
1515
[dev-packages]
1616
# black requires python>=3.6
1717
# https://github.com/psf/black/commit/e74117f172e29e8a980e2c9de929ad50d3769150#diff-2eeaed663bd0d25b7e608891384b7298R51
18-
#black = "==19.10b0"
18+
black = {version = "==20.8b1", markers = "python_version >= '3.6'"}
1919
pylint = "*"
2020
pylint-import-requirements = "*"
2121
#pytest = "*"

Pipfile.lock

Lines changed: 126 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)