Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Fix linting tests to pass travis build #7

Closed
@binaryflesh

Description

@binaryflesh
============================= test session starts ==============================
platform linux -- Python 3.5.6, pytest-4.1.0, py-1.7.0, pluggy-0.8.0
rootdir: /home/travis/build/gitcoinco/python-api-client, inifile: setup.cfg
plugins: isort-0.3.1, cov-2.6.1
collected 28 items                                                             
conftest.py .                                                            [  3%]
setup.py .                                                               [  7%]
gitcoin/__init__.py F                                                    [ 10%]
gitcoin/client.py .                                                      [ 14%]
gitcoin/validation.py .                                                  [ 17%]
tests/__init__.py .                                                      [ 21%]
tests/test_dry_run.py ..................                                 [ 85%]
tests/test_live.py .sss                                                  [100%]
=================================== FAILURES ===================================
_________________________________ isort-check __________________________________
ERROR: /home/travis/build/gitcoinco/python-api-client/gitcoin/__init__.py Imports are incorrectly sorted.
 """Define the Gitcoin API client."""
 
-from gitcoin.client import Config
-from gitcoin.client import BountyConfig
-from gitcoin.client import Endpoint
-from gitcoin.client import Gitcoin
+from gitcoin.client import BountyConfig, Config, Endpoint, Gitcoin
 
 __all__ = [
     'Config',
=============================== warnings summary ===============================
tests/test_live.py:18
  /home/travis/build/gitcoinco/python-api-client/tests/test_live.py:18: PytestDeprecationWarning: the `pytest.config` global is deprecated.  Please use `request.config` or `pytest_configure` (if you're a pytest plugin) instead.
    not pytest.config.getoption('--liveapi'),
-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========================== short test summary info ============================
FAIL gitcoin/__init__.py::ISORT
========== 1 failed, 24 passed, 3 skipped, 1 warnings in 0.44 seconds ==========
The command "python setup.py test" exited with 1.
cache.2
store build cache
0.00s4.21schange detected (content changed, file is created, or file is deleted):
/home/travis/.cache/pip/http/8/4/4/6/e/8446ec362e64fea594777daa93d4452dcbbf73311fcc694233a3ca52
/home/travis/.cache/pip/http/8/b/2/4/2/8b24226e2da88df4abeee0d8ca6bce79b19ca2bcd5f94b543939c66c
/home/travis/.cache/pip/http/8/d/0/e/1/8d0e104919449355aedb55b5b546bb9fd53f0e1a8ca1b082109464e9
/home/travis/.cache/pip/http/e/a/c/6/1/eac61126daf80149d2a016f12a54eab5e3b5c1dbc77410ff1a97edc4
/home/travis/.cache/pip/wheels/5d/03/65/11238dea369e692f9b3fcd8b07d0d23da586849c0cc45c3f98/gitcoin-0.1.0-cp35-none-any.whl
changes detected, packing new archive
uploading PR.6/cache-linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--python-3.5.tgz
cache uploaded
Done. Your build exited with 1.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions