Changelog
### 3.5.0
```
-------------------
You can view the `3.5.0 milestone`_ on GitLab for more details.
New Dependency Information
~~~~~~~~~~~~~~~~~~~~~~~~~~
- Allow for PyFlakes 1.6.0 (See also `GitLab359`_)
- Start using new PyCodestyle checks for bare excepts and ambiguous identifier
(See also `GitLab361`_)
Features
~~~~~~~~
- Print out information about configuring VCS hooks (See also `GitLab335`_)
- Allow users to develop plugins "local" to a repository without using
setuptools. See our documentation on local plugins for more information.
(See also `GitLab357`_)
Bugs Fixed
~~~~~~~~~~
- Catch and helpfully report ``UnicodeDecodeError``\ s when parsing
configuration files. (See also `GitLab358`_)
.. all links
.. _3.5.0 milestone:
https://gitlab.com/pycqa/flake8/milestones/20
.. issue links
.. _GitLab335:
https://gitlab.com/pycqa/flake8/issues/335
.. _GitLab357:
https://gitlab.com/pycqa/flake8/issues/357
.. _GitLab358:
https://gitlab.com/pycqa/flake8/issues/358
.. _GitLab359:
https://gitlab.com/pycqa/flake8/issues/359
.. _GitLab361:
https://gitlab.com/pycqa/flake8/issues/361
.. merge request links
```
### 3.4.1
```
-------------------
You can view the `3.4.1 milestone`_ on GitLab for more details.
- Fix minor regression when users specify only a ``--select`` list with items
in the enabled/extended select list. (See also `GitLab354`_)
.. all links
.. _3.4.1 milestone:
https://gitlab.com/pycqa/flake8/milestones/19
.. issue links
.. _GitLab354:
https://gitlab.com/pycqa/flake8/issues/354
.. merge request links
```
### 3.4.0
```
-------------------
You can view the `3.4.0 milestone`_ on GitLab for more details.
- Refine logic around ``--select`` and ``--ignore`` when combined with the
default values for each. (See also `GitLab318`_)
- Handle spaces as an alternate separate for error codes, e.g.,
``--ignore 'E123 E234'``. (See also `GitLab329`_)
- Filter out empty select and ignore codes, e.g., ``--ignore E123,,E234``.
(See also `GitLab330`_)
- Specify dependencies appropriately in ``setup.py`` (See also `Gitlab341_`)
- Fix bug in parsing ``--quiet`` and ``--verbose`` from config files.
(See also `GitLab!193`_)
- Remove unused import of ``os`` in the git hook template (See also
`GitLab!194`_)
.. all links
.. _3.4.0 milestone:
https://gitlab.com/pycqa/flake8/milestones/18
.. issue links
.. _GitLab318:
https://gitlab.com/pycqa/flake8/issues/318
.. _GitLab329:
https://gitlab.com/pycqa/flake8/issues/329
.. _GitLab330:
https://gitlab.com/pycqa/flake8/issues/330
.. _GitLab341:
https://gitlab.com/pycqa/flake8/issues/341
.. merge request links
.. _GitLab!193:
https://gitlab.com/pycqa/flake8/merge_requests/193
.. _GitLab!194:
https://gitlab.com/pycqa/flake8/merge_requests/194
```
### 3.3.0
```
-------------------
You can view the `3.3.0 milestone`_ on GitLab for more details.
- Add support for Python 3.6 (via dependencies). **Note** Flake8 does not
guarantee that all plugins will support Python 3.6.
- Added unique error codes for all missing PyFlakes messages. (14 new
codes, see "Error / Violation Codes")
- Dramatically improve the performance of Flake8. (See also `GitLab!156`_)
- Display the local file path instead of the temporary file path when
using the git hook. (See also `GitLab244`_)
- Add methods to Report class that will be called when Flake8 starts and
finishes processing a file. (See also `GitLab251`_)
- Fix problem where hooks should only check \*.py files. (See also
`GitLab268`_)
- Fix handling of SyntaxErrors that do not include physical line information.
(See also `GitLab279`_)
- Update upper bound on PyFlakes to allow for PyFlakes 1.5.0. (See also
`GitLab290`_)
- Update setuptools integration to less eagerly deduplicate packages.
(See also `GitLab295`_)
- Force ``flake8 --version`` to be repeatable between invocations. (See also
`GitLab297`_)
.. all links
.. _3.3.0 milestone:
https://gitlab.com/pycqa/flake8/milestones/16
.. issue links
.. _GitLab244:
https://gitlab.com/pycqa/flake8/issues/244
.. _GitLab251:
https://gitlab.com/pycqa/flake8/issues/251
.. _GitLab268:
https://gitlab.com/pycqa/flake8/issues/268
.. _GitLab279:
https://gitlab.com/pycqa/flake8/issues/279
.. _GitLab290:
https://gitlab.com/pycqa/flake8/issues/290
.. _GitLab295:
https://gitlab.com/pycqa/flake8/issues/295
.. _GitLab297:
https://gitlab.com/pycqa/flake8/issues/297
.. merge request links
.. _GitLab!156:
https://gitlab.com/pycqa/flake8/merge_requests/156
```
### 3.2.1
```
-------------------
You can view the `3.2.1 milestone`_ on GitLab for more details.
- Fix subtle bug when deciding whether to report an on-by-default's violation
(See also `GitLab257`_)
- Fix another bug around SyntaxErrors not being reported at the right column
and row (See also `GitLab259`_ and `GitLab237`_ for a related, previously
fixed bug)
- Fix regression from 2.x where we run checks against explicitly provided
files, even if they don't match the filename patterns. (See also
`GitLab266`_)
.. links
.. _3.2.1 milestone:
https://gitlab.com/pycqa/flake8/milestones/15
.. _GitLab237:
https://gitlab.com/pycqa/flake8/issues/237
.. _GitLab257:
https://gitlab.com/pycqa/flake8/issues/257
.. _GitLab259:
https://gitlab.com/pycqa/flake8/issues/259
.. _GitLab266:
https://gitlab.com/pycqa/flake8/issues/266
```
### 3.2.0
```
-------------------
You can view the `3.2.0 milestone`_ on GitLab for more details.
- Allow for pycodestyle 2.2.0 which fixes a bug in E305 (See also
`GitLab256`_)
.. links
.. _3.2.0 milestone:
https://gitlab.com/pycqa/flake8/milestones/14
.. _GitLab256:
https://gitlab.com/pycqa/flake8/issues/256
```
### 3.1.1
```
-------------------
You can view the `3.1.1 milestone`_ on GitLab for more details.
- Do not attempt to install/distribute a ``man`` file with the Python package;
leave this for others to do. (See also `GitLab254`_)
- Fix packaging bug where wheel version constraints specified in setup.cfg did
not match the constraints in setup.py. (See also `GitLab255`_)
.. links
.. _3.1.1 milestone:
https://gitlab.com/pycqa/flake8/milestones/13
.. _GitLab254:
https://gitlab.com/pycqa/flake8/issues/254
.. _GitLab255:
https://gitlab.com/pycqa/flake8/issues/255
```
### 3.1.0
```
-------------------
You can view the `3.1.0 milestone`_ on GitLab for more details.
- Add ``--bug-report`` flag to make issue reporters' lives easier.
- Collect configuration files from the current directory when using our Git
hook. (See also `GitLab210`_, `GitLab218`_, `GitLab223`_)
- Avoid unhandled exceptions when dealing with SyntaxErrors. (See also
`GitLab214`_, `GitLab238`_)
- Exit early if the value for ``--diff`` is empty. (See also `GitLab226`_)
- Handle empty ``--stdin-display-name`` values. (See also `GitLab235`_)
- Properly report the column number of Syntax Errors. We were assuming that
all reports of column numbers were 0-indexed, however, SyntaxErrors report
the column number as 1-indexed. This caused us to report a column number
that was 1 past the actual position. Further, when combined with
SyntaxErrors that occur at a newline, this caused the position to be
visually off by two. (See also `GitLab237`_)
- Fix the behaviour of ``--enable-extensions``. Previously, items specified
here were still ignored due to the fact that the off-by-default extension
codes were being left in the ``ignore`` list. (See also `GitLab239`_)
- Fix problems around ``--select`` and ``--ignore`` behaviour that prevented
codes that were neither explicitly selected nor explicitly ignored from
being reported. (See also `GitLab242`_)
- Truly be quiet when the user specifies ``-q`` one or more times. Previously,
we were showing the if the user specified ``-q`` and ``--show-source``. We
have fixed this bug. (See also `GitLab245`_)
- Add new File Processor attribute, ``previous_unindented_logical_line`` to
accommodate pycodestyle 2.1.0. (See also `GitLab246`_)
- When something goes wrong, exit non-zero. (See also `GitLab248`_,
`GitLab209`_)
- Add ``--tee`` as an option to allow use of ``--output-file`` and printing to
standard out.
- Allow the git plugin to actually be lazy when collecting files.
- Allow for pycodestyle 2.1 series and pyflakes 1.3 series.
.. links
.. _3.1.0 milestone:
https://gitlab.com/pycqa/flake8/milestones/12
.. _GitLab209:
https://gitlab.com/pycqa/flake8/issues/209
.. _GitLab210:
https://gitlab.com/pycqa/flake8/issues/210
.. _GitLab214:
https://gitlab.com/pycqa/flake8/issues/214
.. _GitLab218:
https://gitlab.com/pycqa/flake8/issues/218
.. _GitLab223:
https://gitlab.com/pycqa/flake8/issues/223
.. _GitLab226:
https://gitlab.com/pycqa/flake8/issues/226
.. _GitLab235:
https://gitlab.com/pycqa/flake8/issues/235
.. _GitLab237:
https://gitlab.com/pycqa/flake8/issues/237
.. _GitLab238:
https://gitlab.com/pycqa/flake8/issues/238
.. _GitLab239:
https://gitlab.com/pycqa/flake8/issues/239
.. _GitLab242:
https://gitlab.com/pycqa/flake8/issues/242
.. _GitLab245:
https://gitlab.com/pycqa/flake8/issues/245
.. _GitLab246:
https://gitlab.com/pycqa/flake8/issues/246
.. _GitLab248:
https://gitlab.com/pycqa/flake8/issues/248
```
Links
- PyPI: https://pypi.org/project/flake8
- Changelog: https://pyup.io/changelogs/flake8/
- Repo: https://gitlab.com/pycqa/flake8
This PR updates flake8 from 3.0.4 to 3.5.0.
Changelog
### 3.5.0 ``` ------------------- You can view the `3.5.0 milestone`_ on GitLab for more details. New Dependency Information ~~~~~~~~~~~~~~~~~~~~~~~~~~ - Allow for PyFlakes 1.6.0 (See also `GitLab359`_) - Start using new PyCodestyle checks for bare excepts and ambiguous identifier (See also `GitLab361`_) Features ~~~~~~~~ - Print out information about configuring VCS hooks (See also `GitLab335`_) - Allow users to develop plugins "local" to a repository without using setuptools. See our documentation on local plugins for more information. (See also `GitLab357`_) Bugs Fixed ~~~~~~~~~~ - Catch and helpfully report ``UnicodeDecodeError``\ s when parsing configuration files. (See also `GitLab358`_) .. all links .. _3.5.0 milestone: https://gitlab.com/pycqa/flake8/milestones/20 .. issue links .. _GitLab335: https://gitlab.com/pycqa/flake8/issues/335 .. _GitLab357: https://gitlab.com/pycqa/flake8/issues/357 .. _GitLab358: https://gitlab.com/pycqa/flake8/issues/358 .. _GitLab359: https://gitlab.com/pycqa/flake8/issues/359 .. _GitLab361: https://gitlab.com/pycqa/flake8/issues/361 .. merge request links ``` ### 3.4.1 ``` ------------------- You can view the `3.4.1 milestone`_ on GitLab for more details. - Fix minor regression when users specify only a ``--select`` list with items in the enabled/extended select list. (See also `GitLab354`_) .. all links .. _3.4.1 milestone: https://gitlab.com/pycqa/flake8/milestones/19 .. issue links .. _GitLab354: https://gitlab.com/pycqa/flake8/issues/354 .. merge request links ``` ### 3.4.0 ``` ------------------- You can view the `3.4.0 milestone`_ on GitLab for more details. - Refine logic around ``--select`` and ``--ignore`` when combined with the default values for each. (See also `GitLab318`_) - Handle spaces as an alternate separate for error codes, e.g., ``--ignore 'E123 E234'``. (See also `GitLab329`_) - Filter out empty select and ignore codes, e.g., ``--ignore E123,,E234``. (See also `GitLab330`_) - Specify dependencies appropriately in ``setup.py`` (See also `Gitlab341_`) - Fix bug in parsing ``--quiet`` and ``--verbose`` from config files. (See also `GitLab!193`_) - Remove unused import of ``os`` in the git hook template (See also `GitLab!194`_) .. all links .. _3.4.0 milestone: https://gitlab.com/pycqa/flake8/milestones/18 .. issue links .. _GitLab318: https://gitlab.com/pycqa/flake8/issues/318 .. _GitLab329: https://gitlab.com/pycqa/flake8/issues/329 .. _GitLab330: https://gitlab.com/pycqa/flake8/issues/330 .. _GitLab341: https://gitlab.com/pycqa/flake8/issues/341 .. merge request links .. _GitLab!193: https://gitlab.com/pycqa/flake8/merge_requests/193 .. _GitLab!194: https://gitlab.com/pycqa/flake8/merge_requests/194 ``` ### 3.3.0 ``` ------------------- You can view the `3.3.0 milestone`_ on GitLab for more details. - Add support for Python 3.6 (via dependencies). **Note** Flake8 does not guarantee that all plugins will support Python 3.6. - Added unique error codes for all missing PyFlakes messages. (14 new codes, see "Error / Violation Codes") - Dramatically improve the performance of Flake8. (See also `GitLab!156`_) - Display the local file path instead of the temporary file path when using the git hook. (See also `GitLab244`_) - Add methods to Report class that will be called when Flake8 starts and finishes processing a file. (See also `GitLab251`_) - Fix problem where hooks should only check \*.py files. (See also `GitLab268`_) - Fix handling of SyntaxErrors that do not include physical line information. (See also `GitLab279`_) - Update upper bound on PyFlakes to allow for PyFlakes 1.5.0. (See also `GitLab290`_) - Update setuptools integration to less eagerly deduplicate packages. (See also `GitLab295`_) - Force ``flake8 --version`` to be repeatable between invocations. (See also `GitLab297`_) .. all links .. _3.3.0 milestone: https://gitlab.com/pycqa/flake8/milestones/16 .. issue links .. _GitLab244: https://gitlab.com/pycqa/flake8/issues/244 .. _GitLab251: https://gitlab.com/pycqa/flake8/issues/251 .. _GitLab268: https://gitlab.com/pycqa/flake8/issues/268 .. _GitLab279: https://gitlab.com/pycqa/flake8/issues/279 .. _GitLab290: https://gitlab.com/pycqa/flake8/issues/290 .. _GitLab295: https://gitlab.com/pycqa/flake8/issues/295 .. _GitLab297: https://gitlab.com/pycqa/flake8/issues/297 .. merge request links .. _GitLab!156: https://gitlab.com/pycqa/flake8/merge_requests/156 ``` ### 3.2.1 ``` ------------------- You can view the `3.2.1 milestone`_ on GitLab for more details. - Fix subtle bug when deciding whether to report an on-by-default's violation (See also `GitLab257`_) - Fix another bug around SyntaxErrors not being reported at the right column and row (See also `GitLab259`_ and `GitLab237`_ for a related, previously fixed bug) - Fix regression from 2.x where we run checks against explicitly provided files, even if they don't match the filename patterns. (See also `GitLab266`_) .. links .. _3.2.1 milestone: https://gitlab.com/pycqa/flake8/milestones/15 .. _GitLab237: https://gitlab.com/pycqa/flake8/issues/237 .. _GitLab257: https://gitlab.com/pycqa/flake8/issues/257 .. _GitLab259: https://gitlab.com/pycqa/flake8/issues/259 .. _GitLab266: https://gitlab.com/pycqa/flake8/issues/266 ``` ### 3.2.0 ``` ------------------- You can view the `3.2.0 milestone`_ on GitLab for more details. - Allow for pycodestyle 2.2.0 which fixes a bug in E305 (See also `GitLab256`_) .. links .. _3.2.0 milestone: https://gitlab.com/pycqa/flake8/milestones/14 .. _GitLab256: https://gitlab.com/pycqa/flake8/issues/256 ``` ### 3.1.1 ``` ------------------- You can view the `3.1.1 milestone`_ on GitLab for more details. - Do not attempt to install/distribute a ``man`` file with the Python package; leave this for others to do. (See also `GitLab254`_) - Fix packaging bug where wheel version constraints specified in setup.cfg did not match the constraints in setup.py. (See also `GitLab255`_) .. links .. _3.1.1 milestone: https://gitlab.com/pycqa/flake8/milestones/13 .. _GitLab254: https://gitlab.com/pycqa/flake8/issues/254 .. _GitLab255: https://gitlab.com/pycqa/flake8/issues/255 ``` ### 3.1.0 ``` ------------------- You can view the `3.1.0 milestone`_ on GitLab for more details. - Add ``--bug-report`` flag to make issue reporters' lives easier. - Collect configuration files from the current directory when using our Git hook. (See also `GitLab210`_, `GitLab218`_, `GitLab223`_) - Avoid unhandled exceptions when dealing with SyntaxErrors. (See also `GitLab214`_, `GitLab238`_) - Exit early if the value for ``--diff`` is empty. (See also `GitLab226`_) - Handle empty ``--stdin-display-name`` values. (See also `GitLab235`_) - Properly report the column number of Syntax Errors. We were assuming that all reports of column numbers were 0-indexed, however, SyntaxErrors report the column number as 1-indexed. This caused us to report a column number that was 1 past the actual position. Further, when combined with SyntaxErrors that occur at a newline, this caused the position to be visually off by two. (See also `GitLab237`_) - Fix the behaviour of ``--enable-extensions``. Previously, items specified here were still ignored due to the fact that the off-by-default extension codes were being left in the ``ignore`` list. (See also `GitLab239`_) - Fix problems around ``--select`` and ``--ignore`` behaviour that prevented codes that were neither explicitly selected nor explicitly ignored from being reported. (See also `GitLab242`_) - Truly be quiet when the user specifies ``-q`` one or more times. Previously, we were showing the if the user specified ``-q`` and ``--show-source``. We have fixed this bug. (See also `GitLab245`_) - Add new File Processor attribute, ``previous_unindented_logical_line`` to accommodate pycodestyle 2.1.0. (See also `GitLab246`_) - When something goes wrong, exit non-zero. (See also `GitLab248`_, `GitLab209`_) - Add ``--tee`` as an option to allow use of ``--output-file`` and printing to standard out. - Allow the git plugin to actually be lazy when collecting files. - Allow for pycodestyle 2.1 series and pyflakes 1.3 series. .. links .. _3.1.0 milestone: https://gitlab.com/pycqa/flake8/milestones/12 .. _GitLab209: https://gitlab.com/pycqa/flake8/issues/209 .. _GitLab210: https://gitlab.com/pycqa/flake8/issues/210 .. _GitLab214: https://gitlab.com/pycqa/flake8/issues/214 .. _GitLab218: https://gitlab.com/pycqa/flake8/issues/218 .. _GitLab223: https://gitlab.com/pycqa/flake8/issues/223 .. _GitLab226: https://gitlab.com/pycqa/flake8/issues/226 .. _GitLab235: https://gitlab.com/pycqa/flake8/issues/235 .. _GitLab237: https://gitlab.com/pycqa/flake8/issues/237 .. _GitLab238: https://gitlab.com/pycqa/flake8/issues/238 .. _GitLab239: https://gitlab.com/pycqa/flake8/issues/239 .. _GitLab242: https://gitlab.com/pycqa/flake8/issues/242 .. _GitLab245: https://gitlab.com/pycqa/flake8/issues/245 .. _GitLab246: https://gitlab.com/pycqa/flake8/issues/246 .. _GitLab248: https://gitlab.com/pycqa/flake8/issues/248 ```Links
- PyPI: https://pypi.org/project/flake8 - Changelog: https://pyup.io/changelogs/flake8/ - Repo: https://gitlab.com/pycqa/flake8