3.8.0 – 2020-05-11
You can view the 3.8.0 milestone on GitLab for more details.
Bugs Fixed
Fix logical checks which report positions out of bounds (See also GitLab!422, GitLab#635)
Fix
--exclude=.*accidentally matching.and..(See also GitLab!424, GitLab#632)
Deprecations
Add deprecation message for vcs hooks (See also GitLab!420, GitLab#568)
3.8.0a2 – 2020-04-24
You can view the 3.8.0 milestone on GitLab for more details.
Bugs Fixed
Fix
type="str"optparse options (See also GitLab!419)
3.8.0a1 – 2020-04-24
You can view the 3.8.0 milestone on GitLab for more details.
New Dependency Information
Remove dependency on
entrypointsand add dependency onimportlib-metadata(only forpython<3.8) (See also GitLab!388, GitLab#569)Pyflakes has been updated to >= 2.2.0, < 2.3.0 (See also GitLab!417)
pycodestyle has been updated to >= 2.6.0a1, < 2.7.0 (See also GitLab!418)
Features
Add
--extend-excludeoption to add to--excludewithout overwriting (See also GitLab!315, GitLab#535)Move argument parsing from
optparsetoargparse(See also GitLab!341Group plugin options in
--help(See also GitLab!342, GitLab#565)Remove parsing of
verbosefrom configuration files as it was not consistently applied (See also GitLab!360, GitLab#439)Remove parsing of
output_filefrom configuration files as it was not consistently applied (See also GitLab!361)Resolve configuration files relative to
cwdinstead of common prefix of passed filenames. You may need to changeflake8 subprojecttocd subproject && flake8 .(See also GitLab!363)Officially support python3.8 (See also GitLab!377)
--disable-noqanow also disables# flake8: noqa(See also GitLab!380, GitLab#590)Ensure that a missing file produces a
E902error (See also GitLab!404, GitLab#600)# noqacomments now apply to all of the lines in an explicit\continuation or in a line continued by a multi-line string (See also GitLab!413, GitLab#375)
Bugs Fixed
Fix
--exclude=./t.pyto only matcht.pyat the top level (See also GitLab!311, GitLab#382)Fix
--show-sourcewhen a file is indented with tabs (See also GitLab!339, GitLab#563)Fix crash when
--max-line-lengthis given a non-integer (See also GitLab!341, GitLab#541)Prevent flip-flopping of
indent_charcausing extraE101errors (See also GitLab!357, pycodestyle#886)Only enable multiprocessing when the method is
forkfixing issues on macos with python3.8+ (See also GitLab!366, GitLab#587) (note: this fix also landed in 3.7.9)noqais now only handled by flake8 fixing specific-noqa. Plugins requesting this parameter will always receiveFalse(See also GitLab!331, GitLab#552)Fix duplicate loading of plugins when invoked via
python -m flake8(See also GitLab!388)Fix early exit when
--exit-zeroand--diffare provided and the diff is empty (See also GitLab!391)Consistently split lines when
\fis present when reading from stdin (See also GitLab!406, GitLab#270)
Deprecations
python setup.py flake8(setuptools integration) is now deprecated and will be removed in a future version (See also GitLab!330, GitLab#544)type='string'(optparse) types are deprecated, usetype=callable(argparse) instead. Support fortype='string'will be removed in a future version (See also GitLab!341)%defaultin plugin option help text is deprecated, use%(default)sinstead. Support for%defaultwill be removed in a future version (See also GitLab!341)optparse-style
action='callback'setting for options is deprecated, use argparse action classes instead. This will be removed in a future version (See also GitLab!341)