From c428c55503911190f7e9d4d9c05d418594c20c6b Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 8 May 2021 12:11:38 -0700 Subject: [PATCH 1/2] Merge pull request #1328 from PyCQA/fix_indent_size_str correct and deprecate the value of indent_size_str --- src/flake8/processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flake8/processor.py b/src/flake8/processor.py index ad011c3..fe9113c 100644 --- a/src/flake8/processor.py +++ b/src/flake8/processor.py @@ -85,8 +85,8 @@ class FileProcessor(object): self.indent_level = 0 #: Number of spaces used for indentation self.indent_size = options.indent_size - #: String representing the space indentation - self.indent_size_str = self.indent_size * " " + #: String representing the space indentation (DEPRECATED) + self.indent_size_str = str(self.indent_size) #: Line number in the file self.line_number = 0 #: Current logical line From c6e0d27593a45342ffa96a18bba708a5aab32fdf Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 8 May 2021 12:51:11 -0700 Subject: [PATCH 2/2] Release 3.9.2 --- docs/source/release-notes/3.9.2.rst | 21 +++++++++++++++++++++ docs/source/release-notes/index.rst | 1 + src/flake8/__init__.py | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 docs/source/release-notes/3.9.2.rst diff --git a/docs/source/release-notes/3.9.2.rst b/docs/source/release-notes/3.9.2.rst new file mode 100644 index 0000000..ebcada5 --- /dev/null +++ b/docs/source/release-notes/3.9.2.rst @@ -0,0 +1,21 @@ +3.9.2 -- 2021-05-08 +------------------- + +You can view the `3.9.2 milestone`_ on GitHub for more details. + +Bugs Fixed +~~~~~~~~~~ + +- Fix error message for ``E111`` in ``pycodestyle`` (See also :pull:`1328`, + :issue:`1327`). + +Deprecations +~~~~~~~~~~~~ + +- ``indent_size_str`` is deprecated, use ``str(indent_size)`` instead (See + also :pull:`1328`, :issue:`1327`). + + +.. all links +.. _3.9.2 milestone: + https://github.com/PyCQA/flake8/milestone/40 diff --git a/docs/source/release-notes/index.rst b/docs/source/release-notes/index.rst index 9fcdb85..dd20253 100644 --- a/docs/source/release-notes/index.rst +++ b/docs/source/release-notes/index.rst @@ -9,6 +9,7 @@ with the newest releases first. ================== .. toctree:: + 3.9.2 3.9.1 3.9.0 3.8.4 diff --git a/src/flake8/__init__.py b/src/flake8/__init__.py index 3c7f082..27b936b 100644 --- a/src/flake8/__init__.py +++ b/src/flake8/__init__.py @@ -18,7 +18,7 @@ if False: # `typing.TYPE_CHECKING` was introduced in 3.5.2 LOG = logging.getLogger(__name__) LOG.addHandler(logging.NullHandler()) -__version__ = "3.9.1" +__version__ = "3.9.2" __version_info__ = tuple( int(i) for i in __version__.split(".") if i.isdigit() )