Skip to content

Commit 2c05c75

Browse files
authored
Merge pull request #220 from divio/feature/PD-399_py3-black-2
black formatting, python3, make lint
2 parents 4dda5e7 + 57b211c commit 2c05c75

21 files changed

Lines changed: 1317 additions & 1171 deletions

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ matrix:
77
os: osx
88
before_install:
99
- brew update
10-
- brew upgrade python
11-
- pip3 install virtualenv
12-
- virtualenv env -p python3
10+
- pyenv install 3.6.3
11+
- pyenv local 3.6.3
12+
- pip install virtualenv
13+
- virtualenv env
1314
- source env/bin/activate
1415
- language: python
1516
os: linux

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# can also be used as `make ARGS=--check black` for example
2+
black:
3+
find divio_cli -name '*.py' | xargs black --line-length=79 --safe $(ARGS)
4+
5+
isort:
6+
isort -rc divio_cli
7+
8+
autoflake:
9+
find divio_cli -name '*.py' | xargs autoflake --in-place --remove-unused-variables
10+
11+
# isort must come first as black reformats the imports again
12+
lint: autoflake isort black

divio_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.3.7'
1+
__version__ = "3.3.7"

0 commit comments

Comments
 (0)