diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-10-27 11:07:48 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-10-27 11:38:06 -0700 |
commit | ff6e313a244e0566e588644d0e25ae56f21ce7cc (patch) | |
tree | 6292cce8641acf1c2681cb5a3f942ca3bae2ca0d | |
parent | e59088f76e1684d7cea1a4aa3985113bac649f22 (diff) | |
download | isort-ff6e313a244e0566e588644d0e25ae56f21ce7cc.tar.gz |
Fix test and Travis failures
- Fix Pipfile test to correctly return requirement names
- Drop 'basepython' from lint environment so lint can run in any
environment
Travis is green again 🎉
-rw-r--r-- | isort/finders.py | 6 | ||||
-rw-r--r-- | tox.ini | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/isort/finders.py b/isort/finders.py index d3a3c074..04887ba9 100644 --- a/isort/finders.py +++ b/isort/finders.py @@ -287,10 +287,8 @@ class PipfileFinder(ReqsBaseFinder): def _get_names(self, path): with chdir(path): project = Pipfile.load(path) - sections = project.get_sections() - for section in sections.values(): - for name in section: - yield name + for req in project.packages: + yield req.name def _get_files_from_dir(self, path): if 'Pipfile' in os.listdir(path): @@ -16,7 +16,6 @@ commands = py.test test_isort.py {posargs} commands = python setup.py isort [testenv:lint] -basepython = python3.6 deps = flake8==3.5.0 commands = flake8 skip_install = True |