Ian Cordasco
82ea7edadc
Fixes #14 and #19 .
...
@BackSeat contributed the patch. Signature changes are mentioned in README.
2012-11-08 09:03:54 -05:00
Ian Cordasco
cc1d7c5385
Merge in @tarek's changes.
2012-11-07 20:33:04 -05:00
Tarek Ziade
982b089243
make sure pep8style is always initialized
2012-11-07 20:58:40 +01:00
Ian Cordasco
a4ebc1c5c4
Fix #21 . `init` can also be used elsewhere.
...
Sane defaults are awesome. Also, I hope mercurial uses similar commit messages
to git. ;)
2012-11-07 12:40:49 -05:00
Ian Cordasco
297a566b46
Incorporate @phd's patch.
2012-11-06 16:24:14 -05:00
Tarek Ziade
792add28c2
style
2012-10-17 10:20:45 +02:00
Tarek Ziade
00696f120e
init pep8 - fixes #32
2012-10-17 10:20:21 +02:00
Peter Teichman
3bd3c01e35
Remove the now-unused set() in _get_python_files
...
This was left over from a previous patch and unused after
adding the 'checked' set() to Flake8Command.run()
2012-09-17 07:32:11 -04:00
Peter Teichman
4a7b381fc0
Merge from the flake8 trunk
2012-09-15 13:52:37 -04:00
Peter Teichman
c6ac38cd70
Incorporate patch review on Flake8Command
...
* add a note about the setuptools command to README
* don't install the Flake8Command entry point without setuptools
* fix a bug in Flake8Command that might cause double checking
of files in 'packages'
2012-09-12 18:44:24 -04:00
Tarek Ziadé
0d29a4b02a
Merged in huhao/flake8 (pull request #25 )
2012-09-12 10:03:51 +02:00
onlytiancai
ccc7acc62e
1. mccabe.py support # NOQA 2. run.py support ignore some errors 3. run.py add max_line_length default value
2012-09-12 11:03:20 +08:00
Peter Teichman
2e04e30d51
add Flake8Command, a setuptools command
...
This runs flake8 with the default options on all Python files
referenced by a package's setup.py. It works with both
package-based and py_modules-based file lists.
2012-09-09 08:24:04 -04:00
Peter Teichman
2f9825a6af
apply the pep8 default max_line_length in _PEP8Options
2012-09-09 08:20:18 -04:00
Stephane Klein
0e2456fc76
Upgrave pep8.py file and try to implement : https://bitbucket.org/tarek/flake8/issue/23/use-pep8-configuration-file
...
There are may be some regression to fix.
2012-08-04 16:20:21 +02:00
Tarek Ziade
aaa14dc4e1
fixed the stdin, thanks to zeeg
2012-07-27 11:52:37 +02:00
Christoph Rauch
3438b55c1a
git_hook: Only check staged changes for compliance
2012-06-14 14:04:42 +02:00
Steven Kryskalla
1feeec96f9
Add a flag for exiting with status code 0, even when there are warnings
...
This might be useful e.g. in a build system where exiting with status code > 0
always means the build failed. In that case, you still want to signify that
flake8 itself ran without problems, even when there are warnings.
2012-02-21 17:02:53 -08:00
Tarek Ziade
1307356ba7
merge back Jason change
2012-02-21 11:52:32 +01:00
Tarek Ziade
7beb6d3845
make sure skip_warning works with no files
2012-02-21 10:37:40 +01:00
Jason Kölker
b8575081ed
Add --builtins option to appending list of builtins
...
Useful for projects using gettext that add '_' as a builtin
2012-02-15 11:17:17 -06:00
Tarek Ziade
0ac0cec20f
more py3 fixes
2012-02-14 21:27:41 +01:00
Tarek Ziade
625834cfff
fixed space
2012-02-14 14:21:16 +01:00
Tarek Ziade
e439682c85
added a git hook - fixes #8
2012-02-14 14:20:51 +01:00
Stefan Scherfke
b4f73f0f8c
The hg hook should now have the same output as a direct call to flake8.
2012-02-02 11:11:19 +01:00
Stefan Scherfke
714ea7a0e2
Fixed issue #6 .
2012-01-04 09:16:51 +01:00
Tarek Ziade
a6e2297838
made complexity an option (deactivated by default)
2011-11-29 13:40:40 +01:00
Tarek Ziade
49eb37bb5d
discard unexisting files - happens on hg rm
2011-02-27 17:16:32 +01:00
Stefan Scherfke
dcc311be76
Fixed hg hook.
2011-02-27 16:08:17 +01:00
Tarek Ziade
8d71ebb10f
merged
2011-02-18 09:07:23 +01:00
Tarek Ziade
831ef5423c
fixed pep8 initialization when its run via hg
2011-02-18 09:05:34 +01:00
Nicolas Dumazet
06d30763b3
mercurial hook: skip duplicates
...
If a push contains several commits affecting many times the same
file, we only need to check once for the changed file.
2011-02-18 12:23:15 +09:00
Nicolas Dumazet
13d0efd6d7
use mercurial's ui.configbool API to retrieve booleans
2011-02-18 12:20:34 +09:00
Tamás Gulácsi
c630547441
make short options work
2011-02-16 19:58:33 +01:00
Tarek Ziade
3960104be3
code cleanup
2011-02-13 12:35:01 +01:00