From c7c6218e58f0fc005bd80f1872da63cd51afe71a Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 30 Jul 2022 17:00:41 -0400 Subject: [PATCH] Release 5.0.0 --- docs/source/internal/releases.rst | 4 +- docs/source/release-notes/5.0.0.rst | 76 +++++++++++++++++++++++++++++ docs/source/release-notes/index.rst | 6 +++ src/flake8/__init__.py | 2 +- src/flake8/plugins/finder.py | 2 +- tests/unit/plugins/finder_test.py | 2 +- 6 files changed, 87 insertions(+), 5 deletions(-) create mode 100644 docs/source/release-notes/5.0.0.rst diff --git a/docs/source/internal/releases.rst b/docs/source/internal/releases.rst index 1107c98..f15ea0c 100644 --- a/docs/source/internal/releases.rst +++ b/docs/source/internal/releases.rst @@ -28,9 +28,9 @@ Historically, |Flake8| has generated major releases for: - Unvendoring dependencies (2.0) -- Large scale refactoring (2.0, 3.0) +- Large scale refactoring (2.0, 3.0, 5.0) -- Subtly breaking CLI changes (3.0, 4.0) +- Subtly breaking CLI changes (3.0, 4.0, 5.0) - Breaking changes to its plugin interface (3.0) diff --git a/docs/source/release-notes/5.0.0.rst b/docs/source/release-notes/5.0.0.rst new file mode 100644 index 0000000..e18efc4 --- /dev/null +++ b/docs/source/release-notes/5.0.0.rst @@ -0,0 +1,76 @@ +5.0.0 -- 2022-07-30 +------------------- + +You can view the `5.0.0 milestone`_ on GitHub for more details. + +Backwards Incompatible Changes +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Remove ``indent_size_str`` (See also :pull:`1411`). +- Remove some dead code (See also :pull:`1453`, :pull:`1540`, :pull:`1541`). +- Missing explicitly-specified configuration is now an error (See also + :issue:`1497`, :pull:`1498`). +- Always read configuration files as UTF-8 (See also :issue:`1532`, + :pull:`1533`). +- Remove manpage from docs -- use ``help2man`` or related tools instead (See + also :pull:`1557`). +- Forbid invalid plugin codes (See also :issue:`325`, :pull:`1579`). + + +Deprecations +~~~~~~~~~~~~ + +- Deprecate ``--diff`` option (See also :issue:`1389`, :pull:`1441`). + + +New Dependency Information +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- pycodestyle has been updated to >= 2.9.0, < 2.10.0 (See also :pull:`1626`). +- Pyflakes has been updated to >= 2.5.0, < 2.6.0 (See also :pull:`1625`). +- mccabe has been updated to >= 0.7.0, < 0.8.0 (See also :pull:`1542`). + + +Features +~~~~~~~~ + +- Add colors to output, configurable via ``--color`` (See also :issue:`1379`, + :pull:`1440`). +- Add ``.nox`` to the default exclude list (See also :issue:`1442`, + :pull:`1443`). +- Don't consider a config file which does not contain flake8 settings (See + also :issue:`199`, :pull:`1472`). +- Duplicate ``local-plugins`` names are now allowed (See also :issue:`362`, + :pull:`1504`). +- Consider ``.`` to be a path in config files (See also :issue:`1494`, + :pull:`1508`) +- Add ``--require-plugins`` option taking distribution names (See also + :issue:`283`, :pull:`1535`). +- Improve performance by removing debug logs (See also :pull:`1537`, + :pull:`1544`). +- Include failing file path in plugin execution error (See also :issue:`265`, + :pull:`1543`). +- Improve performance by pre-generating a ``pycodestyle`` plugin (See also + :pull:`1545`). +- Properly differentiate between explicitly ignored / selected and default + ignored / selected options (See also :issue:`284`, :pull:`1576`, + :pull:`1609`). + + +Bugs Fixed +~~~~~~~~~~ + +- Fix physical line plugins not receiving all lines in the case of + triple-quoted strings (See also :issue:`1534`, :pull:`1536`). +- Fix duplicate error logging in the case of plugin issues (See also + :pull:`1538`). +- Fix inconsistent ordering of ``--ignore`` in ``--help`` (See also + :issue:`1550`, :pull:`1552`). +- Fix memory leak of style guides by avoiding ``@lru_cache`` of a method (See + also :pull:`1573`). +- Fix ignoring of configuration files exactly in the home directory (See also + :issue:`1617`, :pull:`1618`). + +.. all links +.. _5.0.0 milestone: + https://github.com/PyCQA/flake8/milestone/42 diff --git a/docs/source/release-notes/index.rst b/docs/source/release-notes/index.rst index c5d20a3..b101a57 100644 --- a/docs/source/release-notes/index.rst +++ b/docs/source/release-notes/index.rst @@ -5,6 +5,12 @@ All of the release notes that have been recorded for Flake8 are organized here with the newest releases first. +5.x Release Series +================== + +.. toctree:: + 5.0.0 + 4.x Release Series ================== diff --git a/src/flake8/__init__.py b/src/flake8/__init__.py index aef6354..b0ccfc8 100644 --- a/src/flake8/__init__.py +++ b/src/flake8/__init__.py @@ -17,7 +17,7 @@ from typing import Type LOG = logging.getLogger(__name__) LOG.addHandler(logging.NullHandler()) -__version__ = "4.0.1" +__version__ = "5.0.0" __version_info__ = tuple(int(i) for i in __version__.split(".") if i.isdigit()) _VERBOSITY_TO_LOG_LEVEL = { diff --git a/src/flake8/plugins/finder.py b/src/flake8/plugins/finder.py index 3c576e9..fb87d0d 100644 --- a/src/flake8/plugins/finder.py +++ b/src/flake8/plugins/finder.py @@ -27,7 +27,7 @@ VALID_CODE = re.compile("^[A-Z]{1,3}[0-9]{0,3}$", re.ASCII) FLAKE8_GROUPS = frozenset(("flake8.extension", "flake8.report")) BANNED_PLUGINS = { - "flake8-colors": "4.1", + "flake8-colors": "5.0", "flake8-per-file-ignores": "3.7", } diff --git a/tests/unit/plugins/finder_test.py b/tests/unit/plugins/finder_test.py index 91cb11f..3c11c64 100644 --- a/tests/unit/plugins/finder_test.py +++ b/tests/unit/plugins/finder_test.py @@ -356,7 +356,7 @@ unrelated = unrelated:main ( "flake8.plugins.finder", 30, - "flake8-colors plugin is obsolete in flake8>=4.1", + "flake8-colors plugin is obsolete in flake8>=5.0", ), ]