#7 PR closed
: Pin flake8 to latest version 3.3.0
pyup.io bot opened issue at 2017-05-21 15:03:
flake8 is not pinned to a specific version.
I'm pinning it to the latest version 3.3.0 for now.
These links might come in handy: PyPI | Changelog | Repo
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 alsoGitLab297
_)
.. 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
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
_ andGitLab237
_ 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
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
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 alsoGitLab254
_)
- 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
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 alsoGitLab226
_)
- Handle empty
--stdin-display-name
values. (See alsoGitLab235
_)
- 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 theignore
list. (See alsoGitLab239
_)
- Fix problems around
--select
and--ignore
behaviour that prevented codes that were neither explicitly selected nor explicitly ignored from being reported. (See alsoGitLab242
_)
- 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 alsoGitLab245
_)
- Add new File Processor attribute,
previous_unindented_logical_line
to accommodate pycodestyle 2.1.0. (See alsoGitLab246
_)
- 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
- Side-step a Pickling Error when using Flake8 with multiprocessing on Unix systems. (See also
GitLab164
_)
- Fix an Attribute Error raised when dealing with Invalid Syntax. (See also
GitLab203
_)
- Fix an unhandled Syntax Error when tokenizing files. (See also
GitLab205
_)
.. links .. _GitLab164: https://gitlab.com/pycqa/flake8/issues/164 .. _GitLab203: https://gitlab.com/pycqa/flake8/issues/203 .. _GitLab205: https://gitlab.com/pycqa/flake8/issues/205
- Disable
--jobs
for any version of Python on Windows. (See alsothis Python bug report
_)
- Raise exception when entry_point in plugin not callable. This raises an informative error when a plugin fails to load because its entry_point is not callable, which can happen with a plugin which is buggy or not updated for the current version of flake8. This is nicer than raising a
PicklingError
about failing to pickle a module (See alsoGitLab164
_)
- Fix
noqa
comments followed by a:
and explanation broken by 3.0.0 (See alsoGitLab178
_)
- Always open our output file in append mode so we do not overwrite log messages. (See also
GitLab193
_)
- When normalizing path values read from configuration, keep in context the directory where the configuration was found so that relative paths work. (See also
GitLab194
_)
- Fix issue where users were unable to ignore plugin errors that were on by default. (See also
GitLab195
_)
- Fix our legacy API StyleGuide's
init_report
method to actually override the previous formatter. (See alsoGitLab200
_)
.. links .. _GitLab164: https://gitlab.com/pycqa/flake8/issues/164 .. _GitLab178: https://gitlab.com/pycqa/flake8/issues/178 .. _GitLab193: https://gitlab.com/pycqa/flake8/issues/193 .. _GitLab194: https://gitlab.com/pycqa/flake8/issues/193 .. _GitLab195: https://gitlab.com/pycqa/flake8/issues/195 .. _GitLab200: https://gitlab.com/pycqa/flake8/issues/200 .. _this Python bug report: https://bugs.python.org/issue27649
- Fix local config file discovery. (See also
GitLab181
_)
- Fix indexing of column numbers. We accidentally were starting column indices at 0 instead of 1.
- Fix regression in handling of errors like E402 that rely on a combination of attributes. (See also
GitLab186
_)
.. links .. _GitLab181: https://gitlab.com/pycqa/flake8/issues/181 .. _GitLab186: https://gitlab.com/pycqa/flake8/issues/186
- Fix regression in handling of
noqa
for multiline strings. (See alsoGitLab177
_)
- Fix regression in handling of
--output-file
when not also using--verbose
. (See alsoGitLab180
_)
- Fix regression in handling of
--quiet
. (See alsoGitLab180
_)
- Fix regression in handling of
--statistics
. (See alsoGitLab180
_)
.. links .. _GitLab177: https://gitlab.com/pycqa/flake8/issues/177 .. _GitLab180: https://gitlab.com/pycqa/flake8/issues/180
- Rewrite our documentation from scratch! (http://flake8.pycqa.org)
- Drop explicit support for Pythons 2.6, 3.2, and 3.3.
- Remove dependence on pep8/pycodestyle for file processing, plugin dispatching, and more. We now control all of this while keeping backwards compatibility.
--select
and--ignore
can now both be specified and try to find the most specific rule from each. For example, if you do--select E --ignore E123
then we will report everything that starts withE
except forE123
. Previously, you would have had to do--ignore E123,F,W
which will also still work, but the former should be far more intuitive.
- Add support for in-line
noqa
comments to specify only the error codes to be ignored, e.g.,noqa: E123,W503
- Add entry-point for formatters as well as a base class that new formatters can inherit from. See the documentation for more details.
- Add detailed verbose output using the standard library logging module.
- Enhance our usage of optparse for plugin developers by adding new parameters to the
add_option
that plugins use to register new options.
- Update
--install-hook
to require the name of version control system hook you wish to install a Flake8.
- Stop checking sub-directories more than once via the setuptools command
- When passing a file on standard-in, allow the caller to specify
--stdin-display-name
so the output is properly formatted
- The Git hook now uses
sys.executable
to format the shebang line. This allows Flake8 to install a hook script from a virtualenv that points to that virtualenv's Flake8 as opposed to a global one (without the virtualenv being sourced).
- Print results in a deterministic and consistent ordering when used with multiprocessing
- When using
--count
, the output is no longer written to stderr.
- AST plugins can either be functions or classes and all plugins can now register options so long as there are callable attributes named as we expect.
- Stop forcibly re-adding
.tox
,.eggs
, and*.eggs
to--exclude
. Flake8 2.x started always appending those three patterns to any exclude list (including the default and any user supplied list). Flake8 3 has stopped adding these in, so you may see errors when upgrading due to these patterns no longer being forcibly excluded by default if you have your own exclude patterns specified.
To fix this, add the appropriate patterns to your exclude patterns list.
.. note::
This item was added in November of 2016, as a result of a bug report.
- Bug Fix packaging error during release process.
- Bug Update the config files to search for to include
setup.cfg
andtox.ini
. This was broken in 2.5.5 when we stopped passingconfig_file
to our Style Guide
- Requirements Change Switch to pycodestyle as all future pep8 releases will use that package name
- Improvement Allow for Windows users on select versions of Python to use
--jobs
and multiprocessing
- Improvement Update bounds on McCabe
- Improvement Update bounds on PyFlakes and blacklist known broken versions
- Improvement Handle new PyFlakes warning with a new error code: F405
- Bug Fix setuptools integration when parsing config files
- Bug Don't pass the user's config path as the config_file when creating a StyleGuide
- Bug Missed an attribute rename during the v2.5.3 release.
- Bug Actually parse
output_file
andenable_extensions
from config files
- Bug Parse
output_file
andenable_extensions
from config files
- Improvement Raise upper bound on mccabe plugin to allow for version 0.4.0
- Bug Properly look for
.flake8
in current working directory (GitLab103
_)
- Bug Monkey-patch
pep8.stdin_get_value
to cache the actual value in stdin. This helps plugins relying on the function when run with multiprocessing. (GitLab105
,GitLab107
)
.. _GitLab103: https://gitlab.com/pycqa/flake8/issues/103 .. _GitLab105: https://gitlab.com/pycqa/flake8/issues/105 .. _GitLab107: https://gitlab.com/pycqa/flake8/issues/107
- Improvement Raise cap on PyFlakes for Python 3.5 support
- Improvement Avoid deprecation warnings when loading extensions (
GitLab59
,GitLab90
)
- Improvement Separate logic to enable "off-by-default" extensions (
GitLab67
_)
- Bug Properly parse options to setuptools Flake8 command (
GitLab!41
_)
- Bug Fix exceptions when output on stdout is truncated before Flake8 finishes writing the output (
GitLab69
_)
- Bug Fix error on OS X where Flake8 can no longer acquire or create new semaphores (
GitLab74
_)
.. _GitLab!41: https://gitlab.com/pycqa/flake8/merge_requests/41 .. _GitLab59: https://gitlab.com/pycqa/flake8/issues/59 .. _GitLab67: https://gitlab.com/pycqa/flake8/issues/67 .. _GitLab69: https://gitlab.com/pycqa/flake8/issues/69 .. _GitLab74: https://gitlab.com/pycqa/flake8/issues/74 .. _GitLab90: https://gitlab.com/pycqa/flake8/issues/90
- Bug Do not raise a
SystemError
unless there were errors in the setuptools command. (GitLab39
,GitLab!23
)
- Bug Do not verify dependencies of extensions loaded via entry-points.
- Improvement Blacklist versions of pep8 we know are broken
.. _GitLab39: https://gitlab.com/pycqa/flake8/issues/39 .. _GitLab!23: https://gitlab.com/pycqa/flake8/merge_requests/23
- Bug Print filenames when using multiprocessing and
-q
option. (GitLab31
_)
- Bug Put upper cap on dependencies. The caps for 2.4.0 are:
pep8 < 1.6
(Related toGitLab35
_)
mccabe < 0.4
pyflakes < 0.9
See also
GitLab32
_
- Bug Files excluded in a config file were not being excluded when flake8 was run from a git hook. (
GitHub2
_)
- Improvement Print warnings for users who are providing mutually exclusive options to flake8. (
GitLab8
,GitLab!18
)
- Feature Allow git hook configuration to live in
.git/config
. See the updatedVCS hooks docs
_ for more details. (GitLab!20
_)
.. _GitHub2: PyCQA/flake8#2 .. _GitLab8: https://gitlab.com/pycqa/flake8/issues/8 .. _GitLab31: https://gitlab.com/pycqa/flake8/issues/31 .. _GitLab32: https://gitlab.com/pycqa/flake8/issues/32 .. _GitLab35: https://gitlab.com/pycqa/flake8/issues/35 .. _GitLab!18: https://gitlab.com/pycqa/flake8/merge_requests/18 .. _GitLab!20: https://gitlab.com/pycqa/flake8/merge_requests/20 .. _VCS hooks docs: https://flake8.readthedocs.org/en/latest/vcs.html
- Feature: Add
--output-file
option to specify a file to write to instead ofstdout
.
- Bug Fix interleaving of output while using multiprocessing (
GitLab17
_)
.. _GitLab17: https://gitlab.com/pycqa/flake8/issues/17
- Flush standard out when using multiprocessing
- Make the check for " flake8: noqa" more strict
- Fix bugs triggered by turning multiprocessing on by default (again)
Multiprocessing is forcibly disabled in the following cases:
- Passing something in via stdin
- Analyzing a diff
- Using windows
- Fix --install-hook when there are no config files present for pep8 or flake8.
- Fix how the setuptools command parses excludes in config files
- Fix how the git hook determines which files to analyze (Thanks Chris Buccella!)
- Actually turn multiprocessing on by default
- Re-enable multiprocessing by default while fixing the issue Windows users were seeing.
- Turn off multiple jobs by default. To enable automatic use of all CPUs, use
--jobs=auto
. Fixes 155 and 154.
- New option
doctests
to run Pyflakes checks on doctests too- New option
jobs
to launch multiple jobs in parallel- Turn on using multiple jobs by default using the CPU count
- Add support for
python -m flake8
on Python 2.7 and Python 3- Fix Git and Mercurial hooks: issues 88, 133, 148 and 149
- Fix crashes with Python 3.4 by upgrading dependencies
- Fix traceback when running tests with Python 2.6
- Fix the setuptools command
python setup.py flake8
to read the project configuration
- Add FLAKE8_LAZY and FLAKE8_IGNORE environment variable support to git and mercurial hooks
- Force git and mercurial hooks to repsect configuration in setup.cfg
- Only check staged files if that is specified
- Fix hook file permissions
- Fix the git hook on python 3
- Ignore non-python files when running the git hook
- Ignore .tox directories by default
- Flake8 now reports the column number for PyFlakes messages
- Pyflakes errors are prefixed by an
F
instead of anE
- McCabe complexity warnings are prefixed by a
C
instead of aW
- Flake8 supports extensions through entry points
- Due to the above support, we require setuptools
- We publish the
documentation <https://flake8.readthedocs.org/>
_- Fixes 13: pep8, pyflakes and mccabe become external dependencies
- Split run.py into main.py, engine.py and hooks.py for better logic
- Expose our parser for our users
- New feature: Install git and hg hooks automagically
- By relying on pyflakes (0.6.1), we also fixed 45 and 35
- Fixes part of 35: Exception for no WITHITEM being an attribute of Checker for Python 3.3
- Support stdin
- Incorporate phd's builtins pull request
- Fix the git hook
- Update pep8.py to the latest version
- fixed the NameError: global name 'message' is not defined (46)
- fixed the mercurial hook, a change from a previous patch was not properly applied
- fixed an assumption about warnings/error messages that caused an exception to be thrown when McCabe is used
- changed the signatures of the
check_file
function in flake8/run.py,skip_warning
in flake8/util.py and thecheck
,checkPath
functions in flake8/pyflakes.py.- fix
--exclude
and--ignore
command flags (14, 19)- fix the git hook that wasn't catching files not already added to the index (29)
- pre-emptively includes the addition to pep8 to ignore certain lines. Add
nopep8
to the end of a line to ignore it. (37)check_file
can now be used without any special prior setup (21)- unpacking exceptions will no longer cause an exception (20)
- fixed crash on non-existent file (38)
- fixed the stdin
- make sure mccabe catches the syntax errors as warnings
- pep8 upgrade
- added max_line_length default value
- added Flake8Command and entry points if setuptools is around
- using the setuptools console wrapper when available
- git_hook: Only check staged changes for compliance
- use pep8 1.2
- fixed support for Python 2.5
- fixed false W402 warning on exception blocks.
- added a git hook
- now Python 3 compatible
- mccabe and pyflakes have warning codes like pep8 now
- fixed the value returned by --version
- allow the flake8: header to be more generic
- fixed the "hg hook raises 'physical lines'" bug
- allow three argument form of raise
- now uses setuptools if available, for 'develop' command
- Deactivates by default the complexity checker
- Introduces the complexity option in the HG hook and the command line.
- update pep8 version to 0.6.1
- mccabe check: gracefully handle compile failure
- fixed hg hook
- discard unexisting files on hook check
- Fix pep8 initialization when run through Hg
- Make pep8 short options work when run through the command line
- Skip duplicates when controlling files via Hg
- Fix the McCabe metric on some loops
Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.
Happy merging! 🤖
[Export of Github issue for mattduck/gh2md. Generated on 2021.06.27 at 12:04:30.]