Commit graph

1227 commits

Author SHA1 Message Date
Ian Cordasco
e32476b671 Add test for the make_checkers method 2016-05-07 19:07:14 -05:00
Ian Cordasco
102037788d Fix import ordering 2016-04-05 18:54:28 -05:00
Ian Cordasco
78b986d506 Refactor checker manager and add tests 2016-04-05 18:52:35 -05:00
Ian Cordasco
eb3d8f5791 Add unit tests around serial retries 2016-04-03 14:41:12 -05:00
Ian Cordasco
e3707bbe08 Fix multiprocessing work with retries 2016-04-02 14:02:43 -05:00
Ian Cordasco
09ad1d850e Restructure Checker Manager for serial retries 2016-04-02 11:30:12 -05:00
Ian Cordasco
81eb3e41cc Add more processor tests 2016-04-02 11:13:23 -05:00
Ian Cordasco
425f89eee9 Add more tests around the processor module 2016-03-29 08:07:15 -05:00
Ian Cordasco
4ea161ff9c Add a few more unit tests around FileProcessor 2016-03-28 21:04:34 -05:00
Ian Cordasco
7de8a058dd Add unit test for build_ast 2016-03-28 19:43:14 -05: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
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