Skip to content

Commit

Permalink
Reformat Python code with black, and make it part of the build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtung committed Aug 23, 2019
1 parent 21874d1 commit c26eeca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ci/azure-python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ steps:
"$PYBIN" -m pip install --user wheel twine setuptools milksnake
displayName: 'Install dev dependencies'
- bash: |
PYBIN=`echo "$(pybin)" | tr -d "'"`
"$PYBIN" -m pip install --user black
"$PYBIN" -m black --check -t py35 ./
displayName: 'Check Python code format'
condition: ne(variables['python.version'], '3.5')
- bash: |
PYBIN=`echo "$(pybin)" | tr -d "'"`
"$PYBIN" setup.py sdist
Expand Down

0 comments on commit c26eeca

Please sign in to comment.