Commit graph

1616 commits

Author SHA1 Message Date
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
Ian Cordasco
698af80514 Add test for FileProcessor#split_line 2016-03-27 14:32:21 -05:00
Ian Cordasco
82dd4f6d25 Add more FileProcessor tests 2016-03-26 08:51:58 -05:00
Ian Cordasco
c11d33d917 Log the attribute error for developers 2016-03-26 08:51:50 -05:00
Ian Cordasco
da172ec641 Print pytest warnings immediately 2016-03-26 08:51:32 -05:00
Ian Cordasco
5554ef78cf Silence pytest warnings 2016-03-26 08:51:21 -05:00
Ian Cordasco
a4cc9d6fa8 Add test for reading from stdin with the file processor 2016-03-21 10:23:27 -05:00
Ian Cordasco
a1c1247cba Remove 2.6 from testing matrix
Explicitly list which versions of Python 2 and 3 we support
2016-03-18 13:55:37 -05:00
Ian Cordasco
0fd276d5ee Add a test for FileProcessor.should_ignore_file 2016-03-17 15:16:15 -05:00
Ian Cordasco
5cde4bebae Add docstring for our test helper 2016-03-17 15:16:00 -05:00
Ian Cordasco
e2b8fbd3a7 Exclude more directories 2016-03-17 15:10:57 -05:00
Ian Cordasco
55cc996368 Move old documentation out of the way 2016-03-17 15:10:35 -05:00
Ian Cordasco
0f2a2614ee Switch out dev-requirements for tox 2016-03-17 14:56:54 -05:00
Ian Cordasco
48b995fa62 Remove unnecessary and outdated test runner 2016-03-17 14:55:57 -05:00
Ian Cordasco
3da9fd3cb7 Remove outdated git to hg conversion script 2016-03-17 14:52:20 -05:00
Ian Cordasco
fbbb3bece5 Ignore directories we do not want to run tests from 2016-03-17 09:16:22 -05:00
Ian Cordasco
09000762fb Rename test file to mirror actual class it is testing 2016-03-17 09:15:52 -05:00
Ian Cordasco
867727f304 Merge remote-tracking branch 'rewrite/master' into proposed/3.0 2016-03-15 16:00:19 -05:00
Ian Cordasco
784a70dd0e Move flake8 2 out of the way 2016-03-15 15:58:24 -05:00
Ian Cordasco
ee18ac981e Handle case where file was ignored 2016-03-15 14:39:43 -05:00
Ian Cordasco
0b063a1024 Run checks expecting an AST 2016-03-15 14:11:01 -05:00
Ian Cordasco
576d1f6c85 Bypass linecache by recording physical line 2016-03-15 14:10:05 -05:00
Ian Cordasco
666e1c2b06 Ensure the logical line is tracked on the processor 2016-03-15 12:27:05 -05:00
Ian Cordasco
19062c5e9c Wrap up multiprocessing work 2016-03-15 12:18:45 -05:00
Ian Cordasco
c0659d1a8c Catch Keyboard interruptions in our application
Add logging to our main application
2016-03-15 11:53:12 -05:00
Ian Cordasco
67f9e04335 Only ever return an integer for job count 2016-03-15 11:52:19 -05:00
Ian Cordasco
6eb3dee1df Reorganize our Application flow 2016-03-15 08:42:30 -05:00
Ian Cordasco
189faf68ba Reorganize methods alphabetically
Add methods to report errors to the style guide

A single file works fine now but not a directory
2016-03-15 08:42:13 -05:00
Ian Cordasco
3b830366b6 Add a results queue 2016-03-15 08:40:43 -05:00
Ian Cordasco
07b9ffbeb9 Add naive multiprocessing support 2016-03-14 21:38:56 -05:00
Ian Cordasco
d222fcb9e1 Correct log levels around loading plugins 2016-03-14 21:38:08 -05:00
Ian Cordasco
0d3506b457 Log tokens at a lower level than debug 2016-03-14 21:37:50 -05:00
Ian Cordasco
e2314c38ed Add a lower level for extra verbosity 2016-03-14 21:37:32 -05:00
Ian Cordasco
447a6d4fcc Fix indentation causing incorrect logical lines 2016-03-14 20:23:20 -05:00
Ian Cordasco
daf5c4d80d Add ability to check if a file is ignored inline
Check for ``# flake8: noqa`` lines inside a file.
2016-03-14 20:23:03 -05:00
Ian Cordasco
2c17b4342f Better log format 2016-03-11 21:26:21 -06:00
Ian Cordasco
4c797c9ff7 Simplify how we check if a file is excluded
Our typical usage always passes is_path_excluded which checks the basename and the full path
2016-03-11 21:08:41 -06:00
Ian Cordasco
d331558868 Send logging output to --output-file 2016-03-11 21:07:40 -06:00
Ian Cordasco
960f4d6af7 Fix missing attributes for pep8 plugins 2016-03-10 19:54:53 -06:00
Ian Cordasco
f04d8da485 Add pep8 checks to plugins list 2016-03-10 19:41:19 -06:00
Ian Cordasco
da21821517 Make flake8 actually work 2016-03-10 19:00:07 -06:00
Ian Cordasco
36fb688f97 Refactor processor and file checker some more 2016-03-04 22:51:22 -06:00
Ian Cordasco
f7a8b7ade7 Move processor to its own module 2016-03-04 20:03:05 -06:00
Ian Cordasco
23c9091b1a Slowly working through pep8.Checker.check_logical 2016-03-02 23:28:24 -06: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
0c894cc8bf Pull more logic out of pep8 2016-03-01 21:27:36 -06:00
Ian Cordasco
6ac955dfd4 Continue porting more logic from pep8 2016-02-28 00:55:47 -06:00
Ian Cordasco
074739de27 Accept the StyleGuide instead of options
pep8's checker has the noqa logic which we've correctly placed on the
StyleGuide object. By passing the StyleGuide in to our checkers we can
have the checkers pass the physical line to the StyleGuide so we can
eliminate our usage of linecache.
2016-02-27 00:06:19 -06:00