Ian Cordasco
45d470927c
Load plugins of each type idempotently
...
* Do not pass too many arguments to provide_options or register_options
* Sub-class PluginTypeManager for both Listeners and Formatters
2016-01-16 07:03:37 -06:00
Ian Cordasco
6ef9089eb7
Add main function entry-point to flake8
...
* Add --isolated option
* Add --append-config
* Add docstring to flake8.main
2016-01-16 07:02:37 -06:00
Ian Cordasco
d2f4e97c31
Delete unnecessary and dead code
2016-01-15 21:39:33 -06:00
Ian Cordasco
f1010b7733
Make plugin and version loading lazy
...
Abstract plugin type management into one class and provide specific
classes for each of our known types of plugins
2016-01-15 10:59:51 -06:00
Ian Cordasco
1870811137
Start working on plugin management
2016-01-14 22:25:02 -06:00
Ian Cordasco
8466d1462f
Start bulding a bit of the cli for functional testing
2016-01-11 23:15:53 -06:00
Ian Cordasco
4018988585
Add a module with defaults
2016-01-11 23:15:23 -06:00
Ian Cordasco
6940ef3aaf
Make log format configurable
2016-01-11 23:15:11 -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
d04cb245d3
Move user and local config merging to own method
2016-01-10 15:19:57 -06:00
Ian Cordasco
53d5f0e49a
Add a pre-specified log format
2016-01-10 15:19:34 -06:00
Ian Cordasco
629f796fc1
Add flake8 linting as a testenv
2016-01-10 14:53:26 -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
Ian Cordasco
a8576aff12
Fix bugs found while writing parse_cli_config test
2016-01-10 13:22:18 -06:00
Ian Cordasco
03fd22c230
Add a docstring to conftest
2016-01-10 13:15:25 -06:00
Ian Cordasco
4d13923bfb
Ignore test log files
2016-01-10 13:15:14 -06:00
Ian Cordasco
8b35e29f4f
Ignore .eggs/ directory
2016-01-10 13:14:09 -06:00
Ian Cordasco
16669a6c45
Add test configuration
2016-01-10 13:13:33 -06:00
Ian Cordasco
c33b9d24b1
Add top-level function to configure logging
2016-01-10 13:13:08 -06:00
Ian Cordasco
66da9160b4
Start testing MergedConfigParser
...
Rename the GETINT/GETBOOL sets on the MergedConfigParser to use better
names.
2016-01-10 13:05:35 -06:00
Ian Cordasco
8b85e93e21
Add test for local_configs method
2016-01-10 12:52:29 -06:00
Ian Cordasco
6553198074
Update setup.py
2016-01-10 12:01:22 -06:00
Ian Cordasco
de96b24bad
Add parameter for missing extra config file
2016-01-10 09:50:32 -06:00
Ian Cordasco
9231aae1d6
Add README to fixtures directory
2016-01-10 09:50:16 -06:00
Ian Cordasco
7269d84845
Add test parameters with extra_config_files
2016-01-10 09:45:43 -06:00
Ian Cordasco
91d20207fb
Add setup.cfg for testing purposes
2016-01-10 09:40:09 -06:00
Ian Cordasco
b8dfc9a8e2
Start testing ConfigFileFinder.local_config_files
...
Make sure extra_config_files are all absolute paths and filter them
in local_config_files to ensure they exist.
2016-01-10 09:39:37 -06:00
Ian Cordasco
fdff0f705e
Allow users to pass args to py.test via tox
2016-01-10 09:05:21 -06:00
Ian Cordasco
204a367095
Add more parameters to file location generation test
2016-01-10 09:05:09 -06:00
Ian Cordasco
cb276d63e3
Parametrize windows detection unit test
2016-01-10 09:04:39 -06:00
Ian Cordasco
949d3e48fe
Add tests for generate_possible_local_config_files
...
Fix a bug found via testing where we traverse all the way to the root
directory looking for config files.
2016-01-10 08:40:35 -06:00
Ian Cordasco
dd46f02b58
Add config file fixtures
...
Add more ConfigFileFinder tests
2016-01-09 23:02:20 -06:00
Ian Cordasco
8dd160c98e
Start writing tests for the config finder
2016-01-09 22:34:39 -06:00
Ian Cordasco
30f4ccda0e
Add docstrings to config module
2016-01-09 22:34:13 -06:00
Ian Cordasco
b4b59a9627
Make Option#normalize more reusable
2016-01-09 21:29:08 -06:00
Ian Cordasco
e076fec666
Add some docstrings to manager module
2016-01-09 21:28:49 -06:00
Ian Cordasco
9fe9ef06f7
Add test for comma-separated paths normalization
2016-01-09 21:20:20 -06:00
Ian Cordasco
684f19f5e3
Re-factor normalization in parse_args
2016-01-09 21:17:22 -06:00
Ian Cordasco
cc3a9210fd
Add more tests around parse_args
2016-01-09 21:15:03 -06:00
Ian Cordasco
237a35fe88
Simplify normalize_paths
2016-01-09 21:14:36 -06:00
Ian Cordasco
ec26d46dff
Add tests for normalize_path and normalize_paths
2016-01-09 21:04:11 -06:00
Ian Cordasco
13ca3dfe37
Show that even defaults are properly normalized
2016-01-09 20:30:28 -06:00
Ian Cordasco
a7f7bbbeb2
Handle when dest is provided to Option
2016-01-09 20:29:09 -06:00
Ian Cordasco
a4042d6d69
Start fleshing out flake8.utils
...
Add parse_comma_separated_list, normalize_path, and normalize_paths and
add logic in OptionManager.parse_args to use the right normalize_path*
function based on comma_separated_list value of the option.
2016-01-09 15:58:26 -06:00
Ian Cordasco
ad0200e792
Add failing test for OptionManager.parse_args
2016-01-09 15:33:01 -06:00
Ian Cordasco
36cc254542
Generate dest for Options always
2016-01-09 15:32:44 -06:00