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
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
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
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
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
48b995fa62
Remove unnecessary and outdated test runner
2016-03-17 14:55:57 -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
de9f56addf
Fix import ordering in test files
2016-02-25 14:41:37 -06:00
Ian Cordasco
a4e984dbd2
Add and fix documentation
...
- Add more documentation around utils functions
- Fix documentation about default formatting plugins
- Add extra documentation of filenames_from predicate parameter
- Add test for the default parameter of flake8.utils.fnmatch
2016-02-25 09:06:50 -06:00
Ian Cordasco
24d2689a05
Distinguish check types via plugin type manager
...
Flake8 and pep8 has historically supported three types of checks:
- Plugins that accept the physical line
- Plugins that accept the logical line
- Plugins that accept the AST tree
The logical place to make this distinction is on the Checkers plugin
type manager class. This adds the foundation for finding plugins that
fall into each class.
2016-02-23 23:20:34 -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
8792c30872
Add utility functions around filename matching
...
We add utils.fnmatch and utils.filenames_for in anticipation of our
checker manager creating file checkers for each file. We also include
tests for these functions and a couple previously untested utility
functions.
2016-02-22 21:47:43 -06:00
Ian Cordasco
98357e71db
Fix Notifier.listeners_for
...
If no Trie.find returns None, then node.data will return an
AttributeError.
2016-02-19 18:55:01 -06:00
Ian Cordasco
58b2ca69e4
Remove arguments from StyleGuide
...
- StyleGuides do not need the arguments passed in
- Add a test for is_inline_ignored obeying disable_noqa
2016-02-19 16:10:38 -06:00
Ian Cordasco
6d3d955ba9
Fix other tests after pylint fixes
2016-02-19 16:10:00 -06:00
Ian Cordasco
69b8be71dc
Make pylint happier
2016-02-19 15:10:46 -06:00
Ian Cordasco
fbd5944f15
Add specific tests for is_inline_ignored
...
Update the logic so someone can use a class in their ``# noqa`` ignore
list
2016-02-19 11:02:22 -06:00
Ian Cordasco
f4b18229a0
Add checking for inline #noqa comments
...
This also supports ignoring only specified codes
2016-02-19 09:08:24 -06:00
Ian Cordasco
a9a939cbbc
Update StyleGuide tests and add new tests for handle_error
2016-02-15 22:31:56 -06:00
Ian Cordasco
eafc91ae6a
Add handling and decision making for select and ignore
2016-02-02 20:48:26 -06:00
Ian Cordasco
0645ec3ef7
Move __contains__ and __getitem__ to proper class
2016-02-02 16:53:24 -06:00
Ian Cordasco
5dc7440a2b
Start documenting our Trie implementation
2016-02-01 20:09:15 -06:00
Ian Cordasco
17a7826dc7
Add integration tests for aggregate_options
2016-01-24 22:14:36 -06:00
Ian Cordasco
2cba89c568
Log extended default values and add a test
2016-01-24 22:14:21 -06:00
Ian Cordasco
ebdc935ffc
Refactor NotifierBuilder into its own mixin
...
This allows for easier unit testing
2016-01-24 15:13:58 -06:00
Ian Cordasco
b0a258fe79
Refactor our PluginTypeManager tests
...
Add tests for PluginTypeManager#{register,provide}_optoins
2016-01-23 23:02:06 -06:00
Ian Cordasco
6e8e2b9669
Write more PluginTypeManager tests
2016-01-22 09:06:24 -06:00
Ian Cordasco
3b64ff2a1f
Make Plugin.load_plugin raise a Flake8 exception
...
Let's catch exceptions, log them, and re-raise as a FailedToLoad
exception. This also refactors the actually loading of plugins into a
private method on the Plugin class.
2016-01-22 09:04:52 -06:00
Ian Cordasco
6546cf41d4
Add tests for the PluginTypeManager
2016-01-21 22:15:38 -06:00
Ian Cordasco
916bec859c
Finish testing PluginManager
2016-01-21 08:32:35 -06:00
Ian Cordasco
50e8fef125
Add more PluginManager tests
2016-01-21 08:26:05 -06:00
Ian Cordasco
6a72e36681
Start tests for PluginManager
2016-01-19 23:01:07 -06:00
Ian Cordasco
56a75cc391
Add tests for the Plugin class
2016-01-19 22:57:04 -06:00
Ian Cordasco
4e294af81c
Update fixture README with descriptions
2016-01-19 06:43:47 -06:00
Ian Cordasco
dcf696d678
Add tests around new OptionManager methods
2016-01-17 21:45:32 -06:00
Ian Cordasco
d6dbf797bc
Add forgotten config file fixtures
2016-01-17 13:08:52 -06:00
Ian Cordasco
cb9231eb9b
Add tests around merge_user_and_local_config and parse
2016-01-10 22:07:30 -06:00
Ian Cordasco
e5c3ae5cd2
Add tests for parse_{user,local}_config methods
2016-01-10 21:43:00 -06:00
Ian Cordasco
ebe47ec740
Add fixture file without a flake8 section
2016-01-10 21:05:51 -06:00
Ian Cordasco
18bfa1f8a2
Add test for is_configured_by
2016-01-10 15:20:08 -06:00
Ian Cordasco
8c872c4bb9
Add more docstrings and fix lint errors
2016-01-10 14:47:06 -06:00
Ian Cordasco
5903576732
Ignore only D203 and fix Flake8 errors
2016-01-10 14:36:52 -06:00