Ian Cordasco
576d1f6c85
Bypass linecache by recording physical line
2016-03-15 14:10:05 -05:00
Ian Cordasco
19062c5e9c
Wrap up multiprocessing work
2016-03-15 12:18:45 -05:00
Ian Cordasco
67f9e04335
Only ever return an integer for job count
2016-03-15 11:52:19 -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
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
960f4d6af7
Fix missing attributes for pep8 plugins
2016-03-10 19:54:53 -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
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
Ian Cordasco
12e71b0372
Incorporate more parsing logic from pycodestyle
...
Presently we're working on having two singly-responsible classes that
will be easy to test and ideally easier to reason about.
2016-02-26 23:16:33 -06:00
Ian Cordasco
b12f531da4
Separate the check runner from file processor
...
This separates concerns so that the check runner can rely on the file
processor to store state and such. It introduces two logical
collaborators and will allow us to keep feature parity with flake8 2's
plugin design (where it could request any attribute from pep8.Checker).
2016-02-26 08:52:20 -06:00
Ian Cordasco
1cd5fea730
Add type annotations
2016-02-23 21:09:19 -06:00
Ian Cordasco
5ee061b810
Add line splitting and file reading
...
Add some tests around reading lines and striping UTF BOMs
2016-02-23 11:17:11 -06:00
Ian Cordasco
28f4811cb9
Read lines from the file in our checker
2016-02-22 22:17:37 -06:00
Ian Cordasco
7addb72615
Add unified linters testenv
2016-02-22 21:59:59 -06:00
Ian Cordasco
d5a480a464
Add method to determine if filename is excluded
...
Add a method to make FileCheckers from the list of arguments the user
passes. Start to work on FileCheckers
2016-02-22 21:51:50 -06:00
Ian Cordasco
1b91c8d66a
Start working on the code that runs checks
2016-02-21 11:12:56 -06:00