From 4832796a195030b3de69887e89be7bb6a1c7432f Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Fri, 7 Aug 2020 00:54:54 -0700 Subject: [PATCH 1/2] Formatting --- tests/test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_main.py b/tests/test_main.py index 3a85bf9c3..d0bfad5b1 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -234,7 +234,7 @@ def test_main(capsys, tmpdir): # warnings should be displayed if old flags are used with pytest.warns(UserWarning): main.main([str(python_file), "--recursive", "-fss"]) - + def test_isort_command(): """Ensure ISortCommand got registered, otherwise setuptools error must have occured""" From 5c0ea8fba3ec4cf7b6fc2756fdf8e3d8c5db56e9 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Fri, 7 Aug 2020 01:21:34 -0700 Subject: [PATCH 2/2] Hotfix release to fix warning code --- CHANGELOG.md | 3 +++ isort/_version.py | 2 +- isort/settings.py | 2 +- pyproject.toml | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88ac20d75..d45e7db49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Changelog NOTE: isort follows the [semver](https://semver.org/) versioning standard. +### 5.3.2 [Hotfix] Aug 7, 2020 + - Fixed incorrect warning code (W503->W0503). + ### 5.3.1 Aug 7, 2020 - Improve upgrade warnings to be less noisy and point to error codes for easy interoperability with Visual Studio Code (see: #1363). diff --git a/isort/_version.py b/isort/_version.py index 0419a93d2..07f0e9e28 100644 --- a/isort/_version.py +++ b/isort/_version.py @@ -1 +1 @@ -__version__ = "5.3.1" +__version__ = "5.3.2" diff --git a/isort/settings.py b/isort/settings.py index a319ff308..68f09bb6b 100644 --- a/isort/settings.py +++ b/isort/settings.py @@ -407,7 +407,7 @@ def __init__( combined_config.pop(deprecated_option) if not self.quiet: warn( - "W503: Deprecated config options were used: " + "W0503: Deprecated config options were used: " f"{', '.join(deprecated_options_used)}." "Please see the 5.0.0 upgrade guide: bit.ly/isortv5." ) diff --git a/pyproject.toml b/pyproject.toml index ac075b38e..f19a5c9cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ line-length = 100 [tool.poetry] name = "isort" -version = "5.3.1" +version = "5.3.2" description = "A Python utility / library to sort Python imports." authors = ["Timothy Crosley "] license = "MIT"