Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flake8 to 3.9.2 #315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented May 9, 2021

This PR updates flake8 from 3.3.0 to 3.9.2.

Changelog

3.9.2

-------------------

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

3.9.1

-------------------

You can view the `3.9.1 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix codes being ignored by plugins utilizing ``extend_default_ignore`` (See
also :pull:`1317`)


.. all links
.. _3.9.1 milestone:
 https://github.com/PyCQA/flake8/milestone/38

3.9.0

-------------------

You can view the `3.9.0 milestone`_ on GitHub for more details.

New Dependency Information
~~~~~~~~~~~~~~~~~~~~~~~~~~

- Pyflakes has been updated to >= 2.3.0, < 2.4.0 (See also :issue:`1006`)

- pycodestyle has been updated to >= 2.7.0, < 2.8.0 (See also :issue:`1007`)

Deprecations
~~~~~~~~~~~~

- Drop support for python 3.4 (See also :issue:`1283`)

Features
~~~~~~~~

- Add ``--no-show-source`` option to disable ``--show-source`` (See also
:issue:`995`)

Bugs Fixed
~~~~~~~~~~

- Fix handling of ``crlf`` line endings when linting stdin (See also
:issue:`1002`)


.. all links
.. _3.9.0 milestone:
 https://github.com/pycqa/flake8/milestone/37

3.8.4

-------------------

You can view the `3.8.4 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix multiprocessing errors on platforms without ``sem_open`` syscall.  (See
also :issue:`1282`)

- Fix skipping of physical checks on the last line of a file which does not
end in a newline (See also :issue:`997`)

.. all links
.. _3.8.4 milestone:
 https://github.com/pycqa/flake8/milestone/36

3.8.3

-------------------

You can view the `3.8.3 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Also catch ``SyntaxError`` when tokenizing (See also :issue:`992`,
:issue:`747`)

- Fix ``--jobs`` default display in ``flake8 --help`` (See also :issue:`1272`,
:issue:`750`)

.. all links
.. _3.8.3 milestone:
 https://github.com/pycqa/flake8/milestone/35

3.8.2

-------------------

You can view the `3.8.2 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Improve performance by eliminating unnecessary sort (See also :issue:`991`)

- Improve messaging of ``--jobs`` argument by utilizing ``argparse`` (See also
:issue:`1269`, :issue:`1110`)

- Fix file configuration options to be relative to the config passed on the
command line (See also :issue:`442`, :issue:`736`)

- Fix incorrect handling of ``--extend-exclude`` by treating its values as
files (See also :issue:`1271`, :issue:`738`)

.. all links
.. _3.8.2 milestone:
 https://github.com/pycqa/flake8/milestone/34

3.8.1

-------------------

You can view the `3.8.1 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix ``--output-file`` (regression in 3.8.0) (See also :issue:`990`,
:issue:`725`)


.. all links
.. _3.8.1 milestone:
 https://github.com/pycqa/flake8/milestone/33

3.8.0

-------------------

You can view the `3.8.0 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix logical checks which report positions out of bounds (See also
:issue:`987`, :issue:`723`)

- Fix ``--exclude=.*`` accidentally matching ``.`` and ``..`` (See also
:issue:`441`, :issue:`360`)

Deprecations
~~~~~~~~~~~~

- Add deprecation message for vcs hooks (See also :issue:`985`,
:issue:`296`)

3.8.0a2

---------------------

You can view the `3.8.0 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix ``type="str"`` optparse options (See also :issue:`984`)

3.8.0a1

---------------------

You can view the `3.8.0 milestone`_ on GitHub for more details.

New Dependency Information
~~~~~~~~~~~~~~~~~~~~~~~~~~

- Remove dependency on ``entrypoints`` and add dependency on
``importlib-metadata`` (only for ``python<3.8``) (See also :issue:`1297`,
:issue:`297`)

- Pyflakes has been updated to >= 2.2.0, < 2.3.0 (See also :issue:`982`)

- pycodestyle has been updated to >= 2.6.0a1, < 2.7.0 (See also :issue:`983`)

Features
~~~~~~~~

- Add ``--extend-exclude`` option to add to ``--exclude`` without overwriting
(See also :issue:`1211`, :issue:`1091`)

- Move argument parsing from ``optparse`` to ``argparse`` (See also
:issue:`939`

- Group plugin options in ``--help`` (See also :issue:`1219`, :issue:`294`)

- Remove parsing of ``verbose`` from configuration files as it was not
consistently applied (See also :issue:`1245`, :issue:`245`)

- Remove parsing of ``output_file`` from configuration files as it was not
consistently applied (See also :issue:`1246`)

- Resolve configuration files relative to ``cwd`` instead of common prefix of
passed filenames.  You may need to change ``flake8 subproject`` to
``cd subproject && flake8 .`` (See also :issue:`952`)

- Officially support python3.8 (See also :issue:`963`)

- ``--disable-noqa`` now also disables `` flake8: noqa`` (See also
:issue:`1296`, :issue:`318`)

- Ensure that a missing file produces a ``E902`` error (See also :issue:`1262`,
:issue:`328`)

- `` noqa`` comments now apply to all of the lines in an explicit ``\``
continuation or in a line continued by a multi-line string (See also
:issue:`1266`, :issue:`621`)

Bugs Fixed
~~~~~~~~~~

- Fix ``--exclude=./t.py`` to only match ``t.py`` at the top level (See also
:issue:`1208`, :issue:`628`)

- Fix ``--show-source`` when a file is indented with tabs (See also
:issue:`1218`, :issue:`719`)

- Fix crash when ``--max-line-length`` is given a non-integer (See also
:issue:`939`, :issue:`704`)

- Prevent flip-flopping of ``indent_char`` causing extra ``E101`` errors (See
also :issue:`949`, `pycodestyle886`_)

- Only enable multiprocessing when the method is ``fork`` fixing issues
on macos with python3.8+ (See also :issue:`955`, :issue:`315`) (note: this
fix also landed in 3.7.9)

- ``noqa`` is now only handled by flake8 fixing specific-noqa.  Plugins
requesting this parameter will always receive ``False`` (See also
:issue:`1214`, :issue:`1104`)

- Fix duplicate loading of plugins when invoked via ``python -m flake8`` (See
also :issue:`1297`)

- Fix early exit when ``--exit-zero`` and ``--diff`` are provided and the diff
is empty (See also :issue:`970`)

- Consistently split lines when ``\f`` is present when reading from stdin (See
also :issue:`976`, :issue:`202`)

Deprecations
~~~~~~~~~~~~

- ``python setup.py flake8`` (setuptools integration) is now deprecated and
will be removed in a future version (See also :issue:`935`, :issue:`1098`)

- ``type='string'`` (optparse) types are deprecated, use
``type=callable`` (argparse) instead.  Support for ``type='string'`` will
be removed in a future version (See also :issue:`939`)

- ``%default`` in plugin option help text is deprecated, use ``%(default)s``
instead.  Support for ``%default`` will be removed in a future version (See
also :issue:`939`)

- optparse-style ``action='callback'`` setting for options is deprecated, use
argparse action classes instead.  This will be removed in a future version
(See also :issue:`939`)


.. all links
.. _3.8.0 milestone:
 https://github.com/pycqa/flake8/milestone/31

.. issue links
.. _pycodestyle886:
https://github.com/PyCQA/pycodestyle/issues/886

3.7.9

-------------------

You can view the `3.7.9 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Disable multiprocessing when the multiprocessing method is ``spawn`` (such
as on macos in python3.8) (See also :issue:`956`, :issue:`315`)


.. all links
.. _3.7.9 milestone:
 https://github.com/pycqa/flake8/milestone/32

3.7.8

-------------------

You can view the `3.7.8 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix handling of ``Application.parse_preliminary_options_and_args`` when
argv is an empty list (See also :issue:`1303`, :issue:`694`)

- Fix crash when a file parses but fails to tokenize (See also :issue:`1210`,
:issue:`1088`)

- Log the full traceback on plugin exceptions (See also :issue:`926`)

- Fix `` noqa: ...`` comments with multi-letter codes (See also :issue:`931`,
:issue:`1101`)


.. all links
.. _3.7.8 milestone:
 https://github.com/pycqa/flake8/milestone/30

3.7.7

-------------------

You can view the `3.7.7 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix crashes in plugins causing ``flake8`` to hang while unpickling errors
(See also :issue:`1206`, :issue:`681`)


.. all links
.. _3.7.7 milestone:
 https://github.com/pycqa/flake8/milestone/29

3.7.6

-------------------

You can view the `3.7.6 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix ``--per-file-ignores`` for multi-letter error codes (See also
:issue:`1203`, :issue:`683`)

- Improve flake8 speed when only 1 filename is passed (See also :issue:`1204`)


.. all links
.. _3.7.6 milestone:
 https://github.com/pycqa/flake8/milestone/28

3.7.5

-------------------

You can view the `3.7.5 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix reporting of pyflakes "referenced before assignment" error (See also
:issue:`923`, :issue:`679`)


.. all links
.. _3.7.5 milestone:
 https://github.com/pycqa/flake8/milestone/27

3.7.4

-------------------

You can view the `3.7.4 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix performance regression with lots of ``per-file-ignores`` and errors
(See also :issue:`922`, :issue:`677`)


.. all links
.. _3.7.4 milestone:
 https://github.com/pycqa/flake8/milestone/26

3.7.3

-------------------

You can view the `3.7.3 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix imports of ``typing`` in python 3.5.0 / 3.5.1 (See also :issue:`1199`,
:issue:`674`)

- Fix ``flake8 --statistics`` (See also :issue:`920`, :issue:`675`)

- Gracefully ignore ``flake8-per-file-ignores`` plugin if installed (See also
:issue:`1201`, :issue:`671`)

- Improve error message for malformed ``per-file-ignores`` (See also
:issue:`921`, :issue:`288`)


.. all links
.. _3.7.3 milestone:
 https://github.com/pycqa/flake8/milestone/25

3.7.2

-------------------

You can view the `3.7.2 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix broken ``flake8 --diff`` (regressed in 3.7.0) (See also :issue:`919`,
:issue:`667`)

- Fix typo in plugin exception reporting (See also :issue:`908`,
:issue:`668`)

- Fix ``AttributeError`` while attempting to use the legacy api (regressed in
3.7.0) (See also :issue:`1198`, :issue:`673`)

.. all links
.. _3.7.2 milestone:
 https://github.com/pycqa/flake8/milestone/24

3.7.1

-------------------

You can view the `3.7.1 milestone`_ on GitHub for more details.

Bugs Fixed
~~~~~~~~~~

- Fix capitalized filenames in ``per-file-ignores`` setting (See also
:issue:`917`, :issue:`287`)

.. all links
.. _3.7.1 milestone:
 https://github.com/pycqa/flake8/milestone/23

3.7.0

-------------------

You can view the `3.7.0 milestone`_ on GitHub for more details.

New Dependency Information
~~~~~~~~~~~~~~~~~~~~~~~~~~

- Add dependency on ``entrypoints`` >= 0.3, < 0.4 (See also :issue:`897`,
:issue:`1197`)

- Pyflakes has been updated to >= 2.1.0, < 2.2.0 (See also :issue:`912`,
:issue:`913`)

- pycodestyle has been updated to >= 2.5.0, < 2.6.0 (See also :issue:`915`)

Features
~~~~~~~~

- Add support for ``per-file-ignores`` (See also :issue:`892`, :issue:`511`,
:issue:`911`, :issue:`277`)

- Enable use of ``float`` and ``complex`` option types (See also :issue:`894`,
:issue:`258`)

- Improve startup performance by switching from ``pkg_resources`` to
``entrypoints`` (See also :issue:`897`)

- Add metadata for use through the `pre-commit`_ git hooks framework (See also
:issue:`901`, :issue:`1196`)

- Allow physical line checks to return more than one result (See also
:issue:`902`)

- Allow `` noqa:X123`` comments without space between the colon and codes
list (See also :issue:`906`, :issue:`276`)

- Remove broken and unused ``flake8.listen`` plugin type (See also
:issue:`907`, :issue:`663`)

.. all links
.. _3.7.0 milestone:
 https://github.com/pycqa/flake8/milestone/22
.. _pre-commit:
 https://pre-commit.com/

3.6.0

-------------------

You can view the `3.6.0 milestone`_ on GitHub for more details.

New Dependency Information
~~~~~~~~~~~~~~~~~~~~~~~~~~

- pycodestyle has been updated to >= 2.4.0, < 2.5.0 (See also :issue:`1068`,
:issue:`652`, :issue:`869`, :issue:`881`, :issue:`1239`)

- Pyflakes has been updated to >= 2.0.0, < 2.1.0 (See also :issue:`655`,
:issue:`883`)

- flake8 requires python 2.x >= 2.7 or python 3.x >= 3.4 (See also
:issue:`876`)

Features
~~~~~~~~

- Add ``paths`` to allow local plugins to exist outside of ``sys.path`` (See
also :issue:`1067`, :issue:`1237`)

- Copy ``setup.cfg`` files to the temporary git hook execution directory (See
also :issue:`1299`)

- Only skip a file if `` flake8: noqa`` is on a line by itself (See also
:issue:`259`, :issue:`873`)

- Provide a better user experience for broken plugins (See also :issue:`1178`)

- Report ``E902`` when a file passed on the command line does not exist (See
also :issue:`645`, :issue:`878`)

- Add ``--extend-ignore`` for extending the default ``ignore`` instead of
overriding it (See also :issue:`1061`, :issue:`1180`)

Bugs Fixed
~~~~~~~~~~

- Respect a formatter's newline setting when printing (See also :issue:`1238`)

- Fix leaking of processes in the legacy api (See also :issue:`650`,
:issue:`879`)

- Fix a ``SyntaxWarning`` for an invalid escape sequence (See also
:issue:`1186`)

- Fix ``DeprecationWarning`` due to import of ``abc`` classes from the
``collections`` module (See also :issue:`887`)

- Defer ``setuptools`` import to improve flake8 startup time (See also
:issue:`1190`)

- Fix inconsistent line endings in ``FileProcessor.lines`` when running under
python 3.x (See also :issue:`263`, :issue:`889`)


.. all links
.. _3.6.0 milestone:
 https://github.com/pycqa/flake8/milestone/20

3.5.0

-------------------

You can view the `3.5.0 milestone`_ on GitHub for more details.

New Dependency Information
~~~~~~~~~~~~~~~~~~~~~~~~~~

- Allow for PyFlakes 1.6.0 (See also :issue:`1058`)

- Start using new PyCodestyle checks for bare excepts and ambiguous identifier
(See also :issue:`611`)

Features
~~~~~~~~

- Print out information about configuring VCS hooks (See also :issue:`586`)

- Allow users to develop plugins "local" to a repository without using
setuptools. See our documentation on local plugins for more information.
(See also :issue:`608`)

Bugs Fixed
~~~~~~~~~~

- Catch and helpfully report ``UnicodeDecodeError``\ s when parsing
configuration files. (See also :issue:`609`)


.. all links
.. _3.5.0 milestone:
 https://github.com/pycqa/flake8/milestone/19

3.4.1

-------------------

You can view the `3.4.1 milestone`_ on GitHub for more details.

- Fix minor regression when users specify only a ``--select`` list with items
in the enabled/extended select list.  (See also :issue:`605`)

.. all links
.. _3.4.1 milestone:
 https://github.com/pycqa/flake8/milestone/18

3.4.0

-------------------

You can view the `3.4.0 milestone`_ on GitHub for more details.

- Refine logic around ``--select`` and ``--ignore`` when combined with the
default values for each. (See also :issue:`572`)

- Handle spaces as an alternate separate for error codes, e.g.,
``--ignore 'E123 E234'``. (See also :issue:`580`)

- Filter out empty select and ignore codes, e.g., ``--ignore E123,,E234``.
(See also :issue:`581`)

- Specify dependencies appropriately in ``setup.py`` (See also :issue:`592`)

- Fix bug in parsing ``--quiet`` and ``--verbose`` from config files.
(See also :issue:`1169`)

- Remove unused import of ``os`` in the git hook template (See also
:issue:`1170`)

.. all links
.. _3.4.0 milestone:
 https://github.com/pycqa/flake8/milestone/17
Links

@pyup-bot pyup-bot mentioned this pull request May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant