summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Correct usage config_file StyleGuide parameterbug/122Ian Cordasco2016-02-172-14/+11
| | | | | | | | | | Previously, we passed the location for our user config file to the StyleGuide. This was intended to be a way to tell pep8's StyleGuide to use that as a user config file, but instead that became the default for the --config command-line option. This caused that to have higher priority than the project configuration file. Closes #122
* Merge branch 'bug/121' into 'master' Ian Cordasco2016-02-163-51/+93
|\ | | | | | | | | | | | | | | | | | | | | | | Update setuptools command option normalization We were very naively "normalizing" options parsed and provided by setuptools. This updates our handling to store the Option instance from optparse so we can inspect the type, action, and option name for more intelligent option normalization. Closes #121 See merge request !52
| * Update setuptools command option normalizationbug/121Ian Cordasco2016-02-143-51/+93
| | | | | | | | | | | | | | | | | | We were very naively "normalizing" options parsed and provided by setuptools. This updates our handling to store the Option instance from optparse so we can inspect the type, action, and option name for more intelligent option normalization. Closes #121
* | Fix AttributeError referring to enabled_extensions2.5.4Ian Cordasco2016-02-113-2/+7
| | | | | | | | Release v2.5.4
* | Bump version for 2.5.3 and update changes2.5.3Ian Cordasco2016-02-112-1/+7
| |
* | Definitely fix bug reading options from config filesIan Cordasco2016-02-112-3/+3
|/ | | | | | | | | Previously we were not reading output_file or enable_extensions from user provided configuration files. The configuration option name provided to config_options needs to be hyphenated in order for pep8 to recognize and parse out the option correctly. Also, the destination name needs to match the configuration option name that pep8 looks for otherwise it will raise an unhandled KeyError exception.
* Bump version to 2.5.22.5.2Ian Cordasco2016-01-303-2/+10
| | | | | | Record changes Bump cap on mccabe
* Add output_file and enable_extensions to config optsIan Cordasco2016-01-301-0/+1
|
* Merge branch 'fix-tests' into 'master' Ian Cordasco2015-12-301-2/+1
|\ | | | | | | | | | | | | On Python 2.6 TestCase.assertRaises is not a context manager See merge request !51
| * On Python 2.6 TestCase.assertRaises is not a context managerIan Cordasco2015-12-301-2/+1
|/
* Merge branch 'doctest_inc_exc' into 'master' Ian Cordasco2015-12-303-3/+134
|\ | | | | | | | | | | | | | | | | Adding include in and exclude from doctests Signed-off-by: Jason Myers <jason@jasonamyers.com> See merge request !50
| * Adding include in and exclude from doctestsJason Myers2015-12-303-3/+134
| | | | | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* | Merge branch 'docs_off_by_default' into 'master' Ian Cordasco2015-12-201-1/+20
|\ \ | |/ |/| | | | | | | | | | | | | | | Adding docs for off by default This adds documentation for the off_by_default option for extensions, which was added in MR !14. Fixes #24. Signed-off-by: Jason Myers <jason@jasonamyers.com> See merge request !48
| * Switching to --enable-extensions instead of --selectJason Myers2015-12-201-3/+3
| | | | | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
| * Adding docs for off by defaultJason Myers2015-12-191-1/+20
|/ | | | | | | This adds documentation for the off_by_default option for extensions, which was added in MR !14. Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Merge branch 'pr/47'Ian Cordasco2015-12-171-9/+17
|\
| * Isolate the commands that raise OSErrorIan Cordasco2015-12-171-4/+6
| | | | | | | | | | | | | | Right now, running the git and hg commands could easily raise an OSError. Let's only catch it in those cases and then use else to install hooks when those are successful. Otherwise, pass on to the next supported VCS
| * Fix checking for repo dir without git/hgadammhaile2015-12-161-9/+15
|/
* Correct release date for 2.5.1Ian Cordasco2015-12-141-1/+1
| | | | Closes #108
* Merge branch 'master' into 'master' Ian Cordasco2015-12-111-0/+22
|\ | | | | | | | | | | | | Add a FAQ section to the readme It seems like these two questions happen a lot, and are a source of strife. I know that many people won't read an FAQ, but at the very least, it will be a place to point people instead of, "Google for information." See merge request !46
| * Add a FAQ section to the readmeNed Batchelder2015-12-111-0/+22
|/
* Merge branch 'docs/per_project_config_list' into 'master' Ian Cordasco2015-12-091-3/+4
|\ | | | | | | | | | | | | Fix per-project configuration file list See merge request !45
| * Fix per-project configuration file listAndrew Widdersheim2015-12-091-3/+4
|/
* Bump version for v2.5.12.5.1Ian Cordasco2015-12-071-1/+1
|
* Merge branch 'bug/107'Ian Cordasco2015-12-072-9/+22
|\
| * Update stdin_get_value monkey-patchingIan Cordasco2015-12-072-9/+22
|/ | | | | | | Let's use an enclosed function to replace the stdin_get_value function on pep8. Closes #107
* Merge branch 'pep8-stdin-fix' into 'master' Ian Cordasco2015-12-041-0/+14
|\ | | | | | | | | | | | | | | | | | | | | | | Cache stdin for Flake8 plugins Currently plugins (e.g., flake8-docstrings) are struggling to support users passing data in on stdin (e.g., cat file.py | flake8 -). Until pep8 fixes this itself, we can monkey-patch its `stdin_get_value` function to handle the caching for us. Closes #105 See merge request !44
| * Cache stdin for Flake8 pluginspep8-stdin-fixIan Cordasco2015-12-041-0/+14
|/ | | | | | | | | Currently plugins (e.g., flake8-docstrings) are struggling to support users passing data in on stdin (e.g., cat file.py | flake8 -). Until pep8 fixes this itself, we can monkey-patch its `stdin_get_value` function to handle the caching for us. Closes #105
* Merge branch 'bug/103' into 'master' Ian Cordasco2015-11-252-0/+10
|\ | | | | | | | | | | | | Add .flake8 to PROJECT_CONFIG for local config files Closes #103 See merge request !43
| * Add .flake8 to PROJECT_CONFIG for local config filesbug/103Ian Cordasco2015-11-232-0/+10
|/
* Update twine dependency and usageIan Cordasco2015-10-271-2/+2
|
* Merge branch 'release/2.5.0' into 'master' Ian Cordasco2015-10-264-2/+31
|\ | | | | | | | | | | | | Release 2.5.0 See merge request !42
| * Release notes and version bump for v2.5.02.5.0release/2.5.0Ian Cordasco2015-10-242-1/+27
| |
| * Add a few more items to our gitignoreIan Cordasco2015-10-241-0/+3
| |
| * Bump pyflakes cap to 1.1.0Ian Cordasco2015-10-241-1/+1
|/
* Merge branch 'GeonU/flake8-bug-setuptools-options'Ian Cordasco2015-10-073-12/+98
|\
| * Rewrite some tests from !41Ian Cordasco2015-10-071-21/+30
| |
| * Add option_normalizer test codegeonu2015-10-031-0/+77
| |
| * Delete unnecessary functiongeonu2015-10-031-11/+0
| |
| * Delete unused importgeonu2015-10-031-1/+1
| |
| * Use option_normalizergeonu2015-10-031-3/+2
| |
| * Add option_normalizer for setuptoolsgeonu2015-10-031-0/+12
|/
* Merge branch 'bug/67' into 'master' Ian Cordasco2015-09-282-1/+39
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove enabled extensions from `options.select` When taking advantage of the --select flag for off-by-default extensions, we neglected to take into account the fact that leaving the extension names in the select list would cause different behaviour in pep8. This should remedy this. Related to GitLab bug #67 ---- cc @joe-gordon0 See merge request !37
| * Add --enable-extensions flag to Flake8bug/67Ian Cordasco2015-09-272-6/+37
| | | | | | | | | | | | | | | | | | | | This new flag is added so that off-by-default extensions can be enabled without using --select which (currently) causes several problems with pep8's rule engine. This also adds support to the --enable-extensions flag to be specified as a multi-line config option in an appropriate config file. Closes GitLab #67
| * Remove enabled extensions from `options.select`Ian Cordasco2015-09-271-1/+8
| | | | | | | | | | | | | | | | | | When taking advantage of the --select flag for off-by-default extensions, we neglected to take into account the fact that leaving the extension names in the select list would cause different behaviour in pep8. This should remedy this. Related to GitLab bug #67
* | Merge branch 'python-3.5' into 'master' Ian Cordasco2015-09-271-10/+20
|\ \ | | | | | | | | | | | | | | | | | | Update .travis.yml for Python 3.5 See merge request !40
| * | Update .travis.yml for Python 3.5Ian Cordasco2015-09-271-10/+20
| |/
* | Merge branch 'bug/90' into 'master' Ian Cordasco2015-09-272-1/+45
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | Add better logic for loading entry points As noted in the code, setuptools 11.3 deprecated EntryPoint.load and its require parameter. Starting with 11.3 the preferred way is use EntryPoint.require and EntryPoint.resolve as necessary. Unfortunately, those methods do not exist in all versions of setuptools. So we have to check for them and use them when they're available. Otherwise, we fallback to using EntryPoint.load with the require parameter. Closes #59 Closes #90 See merge request !39
| * Add better logic for loading entry pointsbug/90Ian Cordasco2015-09-272-1/+45
|/ | | | | | | | | | | | As noted in the code, setuptools 11.3 deprecated EntryPoint.load and its require parameter. Starting with 11.3 the preferred way is use EntryPoint.require and EntryPoint.resolve as necessary. Unfortunately, those methods do not exist in all versions of setuptools. So we have to check for them and use them when they're available. Otherwise, we fallback to using EntryPoint.load with the require parameter. Closes #59 Closes #90
* Added link to flake8-respect-noqa extension.Luke Plant2015-09-071-1/+3
|