summaryrefslogtreecommitdiff
path: root/tests/unit/test_plugin.py
Commit message (Collapse)AuthorAgeFilesLines
* extend black formatting to tests as wellAnthony Sottile2021-04-181-38/+43
|
* automatic: pyupgrade --py36-plusAnthony Sottile2021-03-301-1/+1
|
* Put plugin options into separate argparse groupsAnthony Sottile2019-08-191-1/+2
|
* move from optparse to argparseAnthony Sottile2019-08-171-2/+2
|
* Replace setuptools with entrypointsAnthony Sottile2018-11-051-42/+16
|
* Update our plugin registration for debuggingIan Stapleton Cordasco2017-08-081-11/+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-0/+11
|
* Actually remove enabled extensions from ignore listIan Cordasco2016-11-091-0/+25
| | | | | | | | 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
* Test loading non-callable pluginsFabian Neundorf2016-07-291-0/+11
| | | | | With d234f22 it did not load plugins which aren't callable. This is adding a basic test to it.
* Configure flake8-import-order to use Google StyleIan Cordasco2016-06-171-4/+3
| | | | | | | | This relies on two things: 1. Properly configuring flake8-import-order to use that style 2. Properly configuring flake8-import-order to know that flake8 is our application name.
* Refactor off-by-default plugins and enabling themIan Cordasco2016-05-281-2/+5
| | | | | | | | | | | We move the logic to add or remove a plugin from the default ignore list to individual methods on the Plugin class (Plugin#enable, Plugin#disable) and use that when registering and parsing options. If the plugin is off-by-default, Plugin#register_options will use Plugin#disable. When parsing options via Plugin#provide_options, if the plugin has been specified in --enable-extensions then it will be re-enabled via Plugin#enable.
* Update tests after last night's refactorIan Cordasco2016-05-101-6/+0
|
* Fix import ordering in test filesIan Cordasco2016-02-251-3/+4
|
* Make Plugin.load_plugin raise a Flake8 exceptionIan Cordasco2016-01-221-0/+12
| | | | | | Let's catch exceptions, log them, and re-raise as a FailedToLoad exception. This also refactors the actually loading of plugins into a private method on the Plugin class.
* Add tests for the Plugin classIan Cordasco2016-01-191-0/+144