[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 17/24] python/qemu: add isort to pipenv
From: |
John Snow |
Subject: |
[PATCH v4 17/24] python/qemu: add isort to pipenv |
Date: |
Thu, 11 Feb 2021 13:58:49 -0500 |
isort 5.0.0 through 5.0.4 has a bug that causes it to misinterpret
certain "from ..." clauses that are not related to imports.
Require 5.0.5 or greater.
isort can be run with 'isort -c qemu' from the python root.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
python/Pipfile | 1 +
python/Pipfile.lock | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/python/Pipfile b/python/Pipfile
index 51c537b0d10..75b96f29d87 100644
--- a/python/Pipfile
+++ b/python/Pipfile
@@ -5,6 +5,7 @@ verify_ssl = true
[dev-packages]
flake8 = ">=3.6.0"
+isort = ">=5.0.5"
mypy = ">=0.770"
pylint = ">=2.6.0"
diff --git a/python/Pipfile.lock b/python/Pipfile.lock
index 5f8aab117c3..201e735c27a 100644
--- a/python/Pipfile.lock
+++ b/python/Pipfile.lock
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
- "sha256":
"65f010a8f2e55e9870d2b7e0d8af129516097d23abf2504f396552748b067ade"
+ "sha256":
"b89c7a1b8a414f2a4cd708964123fb427d55419ee0b39e088bf2e7d4fbc11979"
},
"pipfile-spec": 6,
"requires": {
@@ -46,7 +46,7 @@
"sha256:c729845434366216d320e936b8ad6f9d681aab72dc7cbc2d51bedc3582f3ad1e",
"sha256:fff4f0c04e1825522ce6949973e83110a6e907750cd92d128b0d14aaaadbffdc"
],
- "markers": "python_version >= '3.6' and python_version < '4.0'",
+ "index": "pypi",
"version": "==5.7.0"
},
"lazy-object-proxy": {
--
2.29.2
- Re: [PATCH v4 03/24] python: create qemu packages, (continued)
- [PATCH v4 05/24] python: add qemu package installer, John Snow, 2021/02/11
- [PATCH v4 08/24] python: Add pipenv support, John Snow, 2021/02/11
- [PATCH v4 06/24] python: add VERSION file, John Snow, 2021/02/11
- [PATCH v4 17/24] python/qemu: add isort to pipenv,
John Snow <=
- [PATCH v4 09/24] python: add pylint import exceptions, John Snow, 2021/02/11
- [PATCH v4 14/24] python: move mypy.ini into setup.cfg, John Snow, 2021/02/11
- [PATCH v4 10/24] python: move pylintrc into setup.cfg, John Snow, 2021/02/11
- [PATCH v4 11/24] python: add pylint to pipenv, John Snow, 2021/02/11
- [PATCH v4 07/24] python: add directory structure README.rst files, John Snow, 2021/02/11