summaryrefslogtreecommitdiff
path: root/src/flake8
Commit message (Collapse)AuthorAgeFilesLines
* Handle kwargs passed to get_style_guidebackwards-compat-apiIan Cordasco2016-07-071-0/+10
|
* Fill in most of the legacy APIIan Cordasco2016-07-074-59/+153
| | | | | This does not handle setting custom options via the parameters to get_style_guide.
* Add the skeleton for the LegacyStyleGuideIan Cordasco2016-06-301-0/+47
|
* Update defaultsIan Cordasco2016-06-301-2/+2
| | | | McCabe reports C90* not C* and Flake8 2 used to exclude .eggs and *.egg
* Remove exc_info for logging.exceptionIan Cordasco2016-06-291-1/+1
| | | | It's redundant and the docs say explicitly that it's ignored.
* Revert "Prefer `.flake8` if present for options."Ian Cordasco2016-06-281-3/+1
| | | | | | The intended behaviour already existed. This reverts commit db9d4ad8b4cc2aab1ef8349dc969faa8f589e9cc.
* Iterate over the checkers fewer timesIan Cordasco2016-06-281-4/+17
|
* Bump version for next beta releaseIan Cordasco2016-06-281-1/+1
|
* Fix some logging and logging levelsIan Cordasco2016-06-282-5/+5
|
* Add python and platform details to --versionIan Cordasco2016-06-282-2/+21
| | | | | | | | | | | On Flake8 2.x we added the information about the implementation, version, and operating system to the --version output to make helping users easier. In short they can pretty simply just give us the output from flake8 --version And we can get a lot of the information that we need.
* Handle optional parameters that were never supportedIan Cordasco2016-06-283-12/+32
| | | | | | | | | | | | | | | | | 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-283-2/+31
| | | | | | | | 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
* Parse hyphenated config names alsoIan Cordasco2016-06-282-2/+4
| | | | | | | | | | | | | | | Previously Flake8 parsed both max-line-length = 110 And max_line_length = 110 From the config file without issue. When we updated our logic, I forgot to test for that and we lost that behaviour temporarily. Closes #152
* Handle EarlyQuits and KeyboardInterruptsIan Cordasco2016-06-261-0/+4
|
* Search current directory if no paths are specifiedIan Cordasco2016-06-263-6/+26
| | | | | | This fixes a regression in behaviour from 2.x to 3. Closes #150
* Prefer `.flake8` if present for options.Tom Prince2016-06-251-1/+3
| | | | | | If somebody explicitly has a `.flake8` file, presumably they intend to put flake8 configuration in it, so prefer it to the generic `setup.cfg` and `tox.ini` from pycodestyle.
* Merge branch 'origin/proposed/3.0' into master3.0.0b1Ian Cordasco2016-06-251-0/+1
|
* Move flake8 into srcIan Cordasco2016-06-2529-0/+4358
This is an emerging best practice and there is little reason to not follow it