Skip to content

Commit

Permalink
pipenv: remove black to restore compatibility with python3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fphammerle committed Jun 18, 2020
1 parent 16cd961 commit abbb7e0
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 160 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/python-code-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: code format

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
# black requires python>=3.6
# https://github.com/psf/black/commit/e74117f172e29e8a980e2c9de929ad50d3769150#diff-2eeaed663bd0d25b7e608891384b7298R51
python-version: 3.8
- run: python --version
- run: pip install --upgrade black==19.10b0
- run: pip freeze
- run: black --check .
1 change: 0 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
- run: pipenv run pylint --disable=parse-error tests/*
- run: pipenv run mypy ical2vdir tests
- run: pipenv run pytest --cov=ical2vdir --cov-report=term-missing --cov-fail-under=100
- run: pipenv run black --check .
# >=1.9.0 to detect branch name
# https://github.com/coveralls-clients/coveralls-python/pull/207
# https://github.com/coverallsapp/github-action/issues/4#issuecomment-547036866
Expand Down
4 changes: 3 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ name = "pypi"

[dev-packages]
ical2vdir = {editable = true,path = "."}
black = "==19.10b0"
# black requires python>=3.6
# https://github.com/psf/black/commit/e74117f172e29e8a980e2c9de929ad50d3769150#diff-2eeaed663bd0d25b7e608891384b7298R51
#black = "==19.10b0"
mypy = "*"
pylint = "*"
pylint-import-requirements = "*"
Expand Down
Loading

0 comments on commit abbb7e0

Please sign in to comment.