Commit graph

863 commits

Author SHA1 Message Date
Ian Cordasco
ba2d94888c Add tests for BaseFormatter 2016-06-01 16:56:17 -05:00
Ian Cordasco
15043a4ab7 Update our linecache test to correct it 2016-05-30 16:48:30 -05:00
Ian Cordasco
467672fc5c Refactor Error formatting and handling
This allows us to handle --show-source in our formatters by default.

This also adds the physical line information to the Error class instead
of passing it to is_inline_ignored. This allows us to avoid using
linecache in our formatters.
2016-05-30 16:43:11 -05:00
Ian Cordasco
8300e0f97c Update dependency version constraints 2016-05-30 16:00:59 -05:00
Ian Cordasco
f54c0874f8 Handle sdist installation without tox 2016-05-30 16:00:45 -05:00
Ian Cordasco
df0a799c94 Add configparser to pypy testenv 2016-05-30 12:58:15 -05:00
Ian Cordasco
33f982b446 Rely on Python 3.4 backport of configparser
Python 2.7's ConfigParser module does not allow for the behaviour we
have documented for config files in Flake8 3.0. To compensate for that,
we add a dependency on the configparser backport on PyPI for Python 2.7
2016-05-30 12:51:31 -05:00
Ian Cordasco
e9ddf7533b Add template in comments for new options
Also ensure that existing documentation is consistent with the template
2016-05-29 21:04:03 -05:00
Ian Cordasco
4c3d176f9a Add a first pass at documenting cli options 2016-05-29 20:56:30 -05:00
Ian Cordasco
2fcb222ff9 Fix default printing for --exclude help text 2016-05-28 21:09:05 -05:00
Ian Cordasco
89c9ec795e Start adding descriptions of options 2016-05-28 12:20:46 -05:00
Ian Cordasco
466ef2e596 Add example configuration sections to the docs
Add tests to verify our examples do not regress
2016-05-28 12:00:47 -05:00
Ian Cordasco
91e07ebcff Refactor off-by-default plugins and enabling them
We move the logic to add or remove a plugin from the default ignore
list to individual methods on the Plugin class (Plugin#enable,
Plugin#disable) and use that when registering and parsing options.

If the plugin is off-by-default, Plugin#register_options will use
Plugin#disable. When parsing options via Plugin#provide_options, if
the plugin has been specified in --enable-extensions then it will be
re-enabled via Plugin#enable.
2016-05-28 11:57:18 -05:00
Ian Cordasco
50d74e3cce Add more to configuration documentation 2016-05-27 11:03:36 -05:00
Ian Cordasco
a7898e0389 Begin adding user-facing documentation
Especially around invocation and configuration
2016-05-26 13:21:25 -05:00
Ian Cordasco
f353a5db90 Add a tiny bit to Usage Guide index 2016-05-18 23:05:09 -05:00
Ian Cordasco
28a97a8499 Add user guide index page 2016-05-18 22:28:44 -05:00
Ian Cordasco
25df2df55c Add installation and quickstart to docs start page 2016-05-18 22:28:32 -05:00
Ian Cordasco
e1fe99a90b Nest internal docs 2016-05-18 22:16:53 -05:00
Ian Cordasco
1d3b254814 Nest plugin development docs 2016-05-18 22:10:42 -05:00
Ian Cordasco
36bb148ad5 Add documentation for receiving parsed options 2016-05-17 20:19:02 -05:00
Ian Cordasco
9ada68118d Finish writing about registering plugin options 2016-05-17 20:01:49 -05:00
Ian Cordasco
6b9b4a5aca Add more information about providing information to plugins 2016-05-16 20:53:04 -05:00
Ian Cordasco
72833b629a Start adding documentation about developing plugins 2016-05-16 20:15:14 -05:00
Ian Cordasco
c689781166 Update title 2016-05-16 15:58:59 -05:00
Ian Cordasco
99030223a4 Trim trailing whitespace 2016-05-16 08:17:51 -05:00
Ian Cordasco
89762b9dd1 Document flake8.checker and flake8.processor 2016-05-14 19:35:58 -05:00
Ian Cordasco
d929dd57cb Add a property for off-by-default plugins
If a plugin is off-by-default use its entry-point name (as we currently
do in flake8 2.x) to add it to the default ignore list.
2016-05-10 20:14:54 -05:00
Ian Cordasco
ccadc09a0e Add documentation about how we handle pep8 as a plugin 2016-05-10 20:12:17 -05:00
Ian Cordasco
adaa47730e Comment html_static_path in sphinx config 2016-05-10 17:26:11 -05:00
Ian Cordasco
c8ad626525 Trim unsupported environments 2016-05-10 17:09:44 -05:00
Ian Cordasco
dc919ba4af Add more environments to Travis CI config 2016-05-10 17:09:31 -05:00
Ian Cordasco
559922dbbc Update tests after last night's refactor 2016-05-10 16:37:45 -05:00
Ian Cordasco
f20d44565b Ignore --help/-h until later as well
Explain why we remove --version, --help, and -h
2016-05-10 14:23:16 -05:00
Ian Cordasco
dd0c50dbce Ensure we provide options to all plugins 2016-05-10 14:17:23 -05:00
Ian Cordasco
abdc957f17 Handle determining plugin versions and names
Since we now treat pep8 checks each as an individual plugin, we need a way to
represent pep8 as a single plugin in the version output (like we currently
do). As such we need to be a bit wiser in how we tell the OptionManager about
plugins and their versions and we only do this for certain plugins.
2016-05-10 14:11:47 -05:00
Ian Cordasco
44d994dab9 Print version information the second time we parse arguments 2016-05-10 14:10:03 -05:00
Ian Cordasco
c8a0b6f05e Add bandit for security linting 2016-05-08 14:04:46 -05:00
Ian Cordasco
414922d08e Add documentation around the cli 2016-05-08 14:02:40 -05:00
Ian Cordasco
a82f8cb580 Print the total number of errors before exiting 2016-05-07 20:13:07 -05:00
Ian Cordasco
3ad798db61 Implement --exit-zero functionality 2016-05-07 19:34:27 -05:00
Ian Cordasco
d8635bb92a Simplify result handling
If we start collecting the results in run_parallel *immediately* after
starting the worker processes, we do not need another process to handle
the results. This also allows us to store all of the results on a the
FileChecker class and process results uniformly. This also means we can
count the number of errors and warnings in a run and use that to exit
appropriately (using SystemExit).
2016-05-07 19:28:54 -05:00
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