Commit graph

602 commits

Author SHA1 Message Date
Ian Cordasco
7bed004c06 Merge branch 'mp-win' into 'master'
Enable multiprocessing on Windows on unaffected Python versions


*Related to:* #135

See merge request !61
2016-06-15 11:32:49 +00:00
Ian Cordasco
d425c246d0 Merge branch '405-ImportStarUsage' into 'master'
pyflakes ImportStarUsage => flake8 405 patch



See merge request !56
2016-06-15 11:32:04 +00:00
Ian Cordasco
edb62d1183 Merge branch 'master' into 'master'
Allow pyflakes 1.1

All tests pass and it works fine here :)

See merge request !55
2016-06-15 11:31:50 +00:00
Ian Cordasco
3bf761be58
Release v2.5.5 2016-06-14 09:07:13 -05:00
schlamar
6922f58ed3 Enable multiprocessing on Windows on unaffected Python versions
The upstream bug in Python is fixed in Python 2.7.11+ and Python 3.2+
2016-06-01 07:40:02 +02:00
Ian Cordasco
16686132c1 Merge branch 'master' into 'master'
Fix typo in config.rst, default exclude __pycache__

by default `__pycache__` is excluded.

See merge request !59
2016-05-12 17:49:05 +00:00
Tobias Wilken
010a5ad6c3 Fix typo in config.rst, default exclude __pycache__
By default `__pycache__` is excluded.
2016-05-12 10:22:49 +02:00
Ian Cordasco
ccc01f48d1 Merge branch 'master' into 'master'
Updating the configuration documentation

Updates the documentation to be clearer on how configuration settings should work.

Related to: !53

See merge request !58
2016-03-28 16:10:37 +00:00
Jason Myers
4348b61b08 Updating the configuration documentation
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2016-03-28 10:46:26 -05:00
Ian Cordasco
40f1a1e337 Merge branch 'bug/122' into 'master'
Correct usage config_file StyleGuide parameter

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

See merge request !53
2016-03-28 15:22:01 +00:00
Chris Meyers
9e2e419875 pyflakes ImportStarUsage => flake8 405 patch 2016-03-02 09:37:41 -05:00
Felix Yan
d9358bb082 Allow pyflakes 1.1 2016-03-02 03:56:34 +00:00
Ian Cordasco
62a7cca512 Remove python 3.2 from Travis
Remove special case for Python 2.6 mock test dependency
2016-02-24 16:41:38 -06:00
Ian Cordasco
533d222f52 Correct usage config_file StyleGuide parameter
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
2016-02-17 20:57:24 -06:00
Ian Cordasco
b25ad979a6 Merge branch 'bug/121' into 'master'
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
2016-02-16 15:12:57 +00:00
Ian Cordasco
a8aac56092 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
2016-02-14 13:41:33 -06:00
Ian Cordasco
e2d6f33151 Fix AttributeError referring to enabled_extensions
Release v2.5.4
2016-02-11 11:53:44 -06:00
Ian Cordasco
1845ec33ec Bump version for 2.5.3 and update changes 2016-02-11 11:20:49 -06:00
Ian Cordasco
7d40f525f0 Definitely fix bug reading options from config files
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.
2016-02-11 09:41:14 -06:00
Ian Cordasco
388db0d811 Bump version to 2.5.2
Record changes

Bump cap on mccabe
2016-01-30 08:51:42 -06:00
Ian Cordasco
3bbb337810 Add output_file and enable_extensions to config opts 2016-01-30 08:51:42 -06:00
Ian Cordasco
606f41c074 Merge branch 'fix-tests' into 'master'
On Python 2.6 TestCase.assertRaises is not a context manager



See merge request !51
2015-12-30 21:14:49 +00:00
Ian Cordasco
ebcf3493ec On Python 2.6 TestCase.assertRaises is not a context manager 2015-12-30 15:09:37 -06:00
Ian Cordasco
0f5961bf08 Merge branch 'doctest_inc_exc' into 'master'
Adding include in and exclude from doctests



Signed-off-by: Jason Myers <jason@jasonamyers.com>

See merge request !50
2015-12-30 19:55:08 +00:00
Jason Myers
c9309cb87c Adding include in and exclude from doctests
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2015-12-30 13:14:08 -06:00
Ian Cordasco
bfe978992a Merge branch 'docs_off_by_default' into 'master'
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
2015-12-20 17:54:22 +00:00
Jason Myers
b0a6bada5c Switching to --enable-extensions instead of --select
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2015-12-20 11:23:41 -06:00
Jason Myers
a08a65b982 Adding docs for off by default
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>
2015-12-19 15:48:32 -06:00
Ian Cordasco
b50c510970 Merge branch 'pr/47' 2015-12-17 08:38:05 -06:00
Ian Cordasco
fa1105aaac Isolate the commands that raise OSError
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
2015-12-17 08:35:50 -06:00
adammhaile
4da31aa521 Fix checking for repo dir without git/hg 2015-12-16 22:40:57 -05:00
Ian Cordasco
8b27711400 Correct release date for 2.5.1
Closes #108
2015-12-14 13:13:38 -06:00
Ian Cordasco
2ed54042cf Merge branch 'master' into 'master'
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
2015-12-11 14:17:53 +00:00
Ned Batchelder
17e397fb2c Add a FAQ section to the readme 2015-12-11 08:14:21 -05:00
Ian Cordasco
acea4affaa Merge branch 'docs/per_project_config_list' into 'master'
Fix per-project configuration file list



See merge request !45
2015-12-09 14:09:01 +00:00
Andrew Widdersheim
828c69ea27 Fix per-project configuration file list 2015-12-09 08:54:51 -05:00
Ian Cordasco
4fb7d6a9a7 Bump version for v2.5.1 2015-12-07 22:56:23 -06:00
Ian Cordasco
d288843fb7 Merge branch 'bug/107' 2015-12-07 22:55:08 -06:00
Ian Cordasco
5021da880c Update stdin_get_value monkey-patching
Let's use an enclosed function to replace the stdin_get_value function
on pep8.

Closes #107
2015-12-07 22:50:39 -06:00
Ian Cordasco
d5e3987a9c Merge branch 'pep8-stdin-fix' into 'master'
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
2015-12-04 23:54:29 +00:00
Ian Cordasco
41393c9b6d 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
2015-12-04 00:13:28 -06:00
Ian Cordasco
54a81c0595 Merge branch 'bug/103' into 'master'
Add .flake8 to PROJECT_CONFIG for local config files

Closes #103 

See merge request !43
2015-11-25 02:57:45 +00:00
Ian Cordasco
17553e6192 Add .flake8 to PROJECT_CONFIG for local config files 2015-11-23 10:20:42 -06:00
Ian Cordasco
75ad81eb13 Update twine dependency and usage 2015-10-27 11:29:52 -05:00
Ian Cordasco
3e7d5b952d Merge branch 'release/2.5.0' into 'master'
Release 2.5.0



See merge request !42
2015-10-26 01:20:16 +00:00
Ian Cordasco
99bc94edaa Release notes and version bump for v2.5.0 2015-10-24 20:11:15 -05:00
Ian Cordasco
63b9a84367 Add a few more items to our gitignore 2015-10-24 18:39:53 -05:00
Ian Cordasco
7c08ee8c92 Bump pyflakes cap to 1.1.0 2015-10-24 18:39:24 -05:00
Ian Cordasco
ac87e2d71e Merge branch 'GeonU/flake8-bug-setuptools-options' 2015-10-07 22:09:20 -05:00
Ian Cordasco
d422325548 Rewrite some tests from !41 2015-10-07 22:09:04 -05:00