summaryrefslogtreecommitdiff
path: root/src/flake8/plugins
Commit message (Collapse)AuthorAgeFilesLines
* extend black formatting to tests as wellAnthony Sottile2021-04-181-2/+1
|
* fix mypy errorsAnthony Sottile2021-04-071-1/+3
|
* audit + string joiningAnthony Sottile2021-03-301-2/+2
|
* audit % format callsAnthony Sottile2021-03-302-7/+7
|
* com2annAnthony Sottile2021-03-302-15/+14
|
* automatic: pyupgrade --py36-plusAnthony Sottile2021-03-302-8/+9
|
* introduce pyupgrade, run it in python2-compatible modeAnthony Sottile2021-03-291-1/+1
|
* remove unused noqa commentsAnthony Sottile2021-03-291-1/+1
|
* remove vcs integrationAnthony Sottile2021-03-291-7/+0
|
* Help clarify the option behaviourmsmetko2020-06-071-1/+1
|
* Support pyflakes 2.2.xAnthony Sottile2020-04-111-0/+16
|
* Work around RecursionError in EntryPoint.__repr__ in pypyAnthony Sottile2019-11-291-1/+1
| | | | https://gitlab.com/python-devs/importlib_metadata/issues/97
* Switch from entrypoints to importlib_metadataAnthony Sottile2019-11-281-5/+9
|
* Type annotate flake8.options.managerAnthony Sottile2019-09-071-10/+10
|
* Put plugin options into separate argparse groupsAnthony Sottile2019-08-191-1/+2
|
* move from optparse to argparseAnthony Sottile2019-08-171-2/+0
|
* pyflakes: Change to `normalize_path()` for filename normalizationEric N. Vander Weele2019-07-081-1/+1
| | | | | | | It's unnecessary to call the `normalize_paths()` function because it is intended for dealing with multiple paths to normalize. Given that `normalize_paths()` utilizes `normalize_path()`, just call `normalize_path()` directly.
* mypy now passesAnthony Sottile2019-05-192-16/+10
|
* Remove pyflakes monkeypatchingAnthony Sottile2019-02-161-11/+1
|
* Fix reporting of UndefinedLocal pyflakes errorAnthony Sottile2019-01-311-5/+5
|
* Gracefully ignore flake8-per-file-ignores if installedAnthony Sottile2019-01-301-0/+6
|
* Some lint / mypy fixesAnthony Sottile2019-01-241-1/+1
|
* WIP: use latest pyflakesAnthony Sottile2019-01-191-2/+8
|
* Call pyflakes api betterAnthony Sottile2018-12-311-1/+1
|
* Remove unused and broken flake8.listen plugin typeAnthony Sottile2018-12-273-173/+1
|
* Remove unused verify_requirements argumentremove_unused_verify_requiremetnsAnthony Sottile2018-11-211-8/+2
|
* Merge branch 'entrypoints' into 'master'Anthony Sottile2018-11-211-20/+10
|\ | | | | | | | | Replace setuptools with entrypoints See merge request pycqa/flake8!264
| * Replace setuptools with entrypointsAnthony Sottile2018-11-051-20/+10
| |
* | Grammar fixesVille Skyttä2018-11-111-1/+1
|/
* Fix collections ABCs deprecation warning.Jintao Zhang2018-10-231-2/+7
| | | | Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
* Use black to reformat Flake8Ian Stapleton Cordasco2018-10-204-123/+150
| | | | | Instead of just using Flake8 and pylint to keep Flake8 clean, let's also use black to make it less manual for clean-up.
* Update to pyflakes 2.0.0Miro Hrončok2018-06-051-0/+2
| | | | | | - Add new pyflakes codes - Bump the required versions - Fixes https://gitlab.com/pycqa/flake8/issues/422
* Update our plugin registration for debuggingIan Stapleton Cordasco2017-08-081-2/+0
| | | | | This allows us to report whether or not a plugin is local when users provide `flake8 --bug-report` output.
* Append [local] to version of local plugins.Carl Meyer2017-08-061-4/+11
|
* Minor argument changes.Carl Meyer2017-08-061-1/+1
|
* Add support for local (in-repo, non-setuptools) plugins.Carl Meyer2017-08-031-13/+40
| | | | Closes #357
* Prefer iter(dict) instead of dict.keys()Jon Dufresne2017-05-271-1/+1
| | | | | | | | | | They are equivalent for iterating so remove the additional function call. Pattern identified as outdated by Lennart Regebro's PyCon 2017 talk "Prehistoric Patterns in Python" https://www.youtube.com/watch?v=V5-JH23Vk0I
* Clean up some uses of set, list, and dictJon Dufresne2017-05-131-29/+29
| | | | | | * Use set literals instead of set([...]) * Avoid list(sorted(...)) as sorted returns a list * Replace dict() with dict literal
* Fix docstring violationsIan Cordasco2017-05-121-4/+3
|
* Assign missing codes to PyFlakes messagesLukasz Langa2016-11-281-17/+34
| | | | | | | | Some PyFlakes messages weren't covered by unique messages, making them impossible to select/ignore. This is now fixed. To ensure we don't regress in the future, a test has been added that fails if there's any uncovered messages.
* Actually remove enabled extensions from ignore listIan Cordasco2016-11-091-2/+9
| | | | | | | | When we enable a plugin (when it's provided in the --enable-extensions) plugin, we need to remove it both from the extended default ignore list and the plain ignore list. Closes #239
* Fixed E305: expected 2 blank lines after class or function definitionOndřej Nový2016-11-081-0/+2
|
* Set-up default attributes for FlakesCheckerbug/179Ian Cordasco2016-08-031-0/+3
|
* Serialize Checkers PluginTypeManager to a dictIan Cordasco2016-08-031-0/+24
| | | | | | | | | | | | | It seems likely that the multiprocessing module on Windows is not capable of serializing an object with the structure that we have and preserving the attributes we dynamically set on plugins (like the FlakesChecker). To avoid issues like this with all plugins (although we have only found this on Windows with the FlakesChecker), let's try serializing the Checkers PluginTypeManager to a dictionary so that the only object that a Queue is really trying to serialize/deserialize is the FlakesChecker itself. Related to #179
* Raise exception when entry_point not callableMarc Abramowitz2016-07-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | E.g.: ``` $ .tox/flake8/bin/flake8 mobileweb Traceback (most recent call last): File ".tox/flake8/bin/flake8", line 9, in <module> load_entry_point('flake8', 'console_scripts', 'flake8')() File "/Users/marca/dev/git-repos/flake8/src/flake8/main/cli.py", line 16, in main app.run(argv) File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 316, in run self._run(argv) File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 299, in _run self.initialize(argv) File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 289, in initialize self.find_plugins() File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 143, in find_plugins self.check_plugins.load_plugins() File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 375, in load_plugins plugins = list(self.manager.map(load_plugin)) File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 267, in map yield func(self.plugins[name], *args, **kwargs) File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 373, in load_plugin return plugin.load_plugin() File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 173, in load_plugin raise failed_to_load flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "P999" due to Plugin <module 'teamcity.flake8_plugin' from '/Users/marca/dev/git-repos/teamcity-messages/teamcity/flake8_plugin.pyc'> is not a callable. It might be written for an older version of flake8 and might not work with this version. ``` This is nicer than the previous behavior of raising an obscure `PicklingError` and then hanging. ``` $ .tox/flake8/bin/flake8 mobileweb Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 268, in _feed send(obj) PicklingError: Can't pickle <type 'module'>: attribute lookup __builtin__.module failed ``` See #164
* Remove exc_info for logging.exceptionIan Cordasco2016-06-291-1/+1
| | | | It's redundant and the docs say explicitly that it's ignored.
* Iterate over the checkers fewer timesIan Cordasco2016-06-281-4/+17
|
* Handle optional parameters that were never supportedIan Cordasco2016-06-281-1/+9
| | | | | | | | | | | | | | | | | Previously, pycodestyle never introspected the argument names for classes except to require that ``tree`` be an argument it could pass. For Flake8 3.0, we lifted that restriction, but old plugins seem to have cargo-culted their __init__ signature to be def __init__(self, tree, builtins=None): For some yet unknown reason. This was causing an AttributeError. By updating flake8.utils.parameters_for to return a dictionary that indicates whether the parameter is required or not, we can side-step this by simply ignoring the parameter if it has a default value and we cannot provide it. Closes #151
* Enable plugins automatically during registrationIan Cordasco2016-06-281-0/+11
| | | | | | | | Previously the --select was only ever populated to E,F,W,C and so plugins would not be reported when not off-by-default. This adds a tiny shim so that we enable plugins that are not off-by-default and :x :x
* Merge branch 'origin/proposed/3.0' into master3.0.0b1Ian Cordasco2016-06-251-0/+1
|