* Add context options: -A/-B/-C; Fixes#287
* Fix indentation of line continuation.
* Fix 'only before context' case.
* Add some tests for the new context options.
* Refactor context code (pass context tuple, instead of before/after variables)
* Get rid of 'remove temp file code' in context test.
* Fix reintroduced error (regarding 'only before context').
* Add a test for skipping globs with directory and filename in
* Forcing a Travis build
* Tidy the Travis force
* Skip paths with the glob mathing too
* Add a check for new hidden file functionality
* Fix the code to add the new options
* Fix the test syntax
* Fix the flake8 error
* Improve help text
The current code already allows skipping directories, but the full path
must be given, e.g. "./.git" instead of just ".git", as "codespell ." is
the default.
Allow --skip to be used with relative directory names, too.
The current code already allows skipping directories, but the full path
must be given, e.g. "./.git" instead of just ".git", as "codespell ." is
the default.
As the name of the directory is constant for all files within, move the
check for the directory before the loop.
Also skip descending.
A new command line option -r / --regex is implemented to allow the user
to set the regular expression which is used to find the words in the
input lines. This is useful in projects where you want to overwrite the
default expression, for example to split words after an underscore like
in ID_ESTABLISED.
The new regex option cannot be used together with the --write-changes
functionality since it is not guarantied that this will not break code.
The regular expression for splitting a line into words can be compiled
at startup instead for every file again. This gives some minor
performance improvements, especially when parsing a lot of files.
Enhance the --dictionary option so that multiple dictionary files can
be specified at the command line. With this feature projects can use
the standard dictionary and in addition their own custom files.