From f9824739aeb810c38aa74bec7ca92abdeedf876d Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 21 Aug 2018 16:41:27 +0200 Subject: [PATCH] travis: make sure stylecheck only runs on 3.6 --- .travis.yml | 2 +- requirements-dev.txt | 2 +- setup.cfg | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 16f466403c..c9aaf375f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,7 @@ before_script: script: - python setup.py install - - make stylecheck + - if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then make stylecheck; fi - tox notifications: diff --git a/requirements-dev.txt b/requirements-dev.txt index 494ad11d4e..11e0a245c8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,5 +5,5 @@ mock>=2.0.0 flake8 protobuf isort -black +black; python_version >= "3.6" autoflake diff --git a/setup.cfg b/setup.cfg index bbeaa43f4e..3775b6d623 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,3 +31,4 @@ force_grid_wrap = 0 combine_as_imports = True line_length = 88 not_skip=__init__.py +known_first_party=trezorlib