Skip to content

Commit

Permalink
Merge pull request #220 from divio/feature/PD-399_py3-black-2
Browse files Browse the repository at this point in the history
black formatting, python3, make lint
  • Loading branch information
kinkerl authored Aug 9, 2018
2 parents 4dda5e7 + 57b211c commit 2c05c75
Show file tree
Hide file tree
Showing 21 changed files with 1,317 additions and 1,171 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ matrix:
os: osx
before_install:
- brew update
- brew upgrade python
- pip3 install virtualenv
- virtualenv env -p python3
- pyenv install 3.6.3
- pyenv local 3.6.3
- pip install virtualenv
- virtualenv env
- source env/bin/activate
- language: python
os: linux
Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# can also be used as `make ARGS=--check black` for example
black:
find divio_cli -name '*.py' | xargs black --line-length=79 --safe $(ARGS)

isort:
isort -rc divio_cli

autoflake:
find divio_cli -name '*.py' | xargs autoflake --in-place --remove-unused-variables

# isort must come first as black reformats the imports again
lint: autoflake isort black
2 changes: 1 addition & 1 deletion divio_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.3.7'
__version__ = "3.3.7"
Loading

0 comments on commit 2c05c75

Please sign in to comment.