When running the check/sort/trim make targets, I normally type something
along the lines of:
make check-d<TAB>
And let the shell tab completion finish the line for me. As there exists
multiple variations, (check-dictionary and check-dictionaries) tab
completion stops at the common substring and then I must finish typing
the rest of the command.
By removing the aliases, tab completion will complete the full command
immediately.
With pyproject.toml, setup.py becomes unnecessary. Future versions of
setuptools (and Python packaging in general) will deprecate the file.
The command `setup.py check` was replaced by `twine check` which serves
a similar role.
setuptools is still a dependency of the build, just doesn't require
setup.py.
Fixes#2606
* Update .travis.yml
* Add more debugging to make
* Removing some extra make debug
* Warn if the dictionary tests won't be run
* Remove the make verbosity again
* Install the required dependencies
* Try and install via the right version of pip
* Add a dev extras section
* Switch to the dev extras to install the codespell dev packages
* Install the codespell dev packages via pip
* We need to checkout to have our file
* Install general dependencies
* Add more stuff to extras
* Install the extras from the right directory
Also move more stuff to extras
* Remove the packages installed via the dev packaging and standardise the order with Travis
* Fix the flake8 warnings
* Make the missing test dependencies a fatal error
* Add a note about dev to the readme
* Update README.rst formatting
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
* Tweak licence detail formatting
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
* Pull coverage in as a dependency
* Pull coverage in as a dependency
* Add flake8 to our dev and sort the requirements
* Add a check action which calls flake8, check-manifest and check-dictionaries
* Add the other bits of checking to Makefile
* Switch to make check
* Try running make check on appveyor
* Add a note about make check
* No make on appveyor
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
* Check all the dictionaries are sorted
* Sort and trim all dictionaries
* Add a github action to run make check-dictionary
* Fix the grammar of the tasks, but keep the old ones for backwards compatibility
* Use the new Makefile methods everywhere and update docs
* Sort the dictionaries
* Sort the dictionary
* .travis.yml: Check that the dictionary is sorted
To avoid committing an unsorted dictionary and having to fix it up later, check
that the dictionary is sorted in Travis-CI.
This fixes issue #310.
* Makefile: Use LC_ALL=C instead of LANG=C to set locale for sort
The POSIX manual page for sort states:
ENVIRONMENT VARIABLES
The following environment variables shall affect the execution of sort:
LANG Provide a default value for the internationalization
variables that are unset or null. (See the Base Definitions
volume of POSIX.1‐2008, Section 8.2, Internationalization
Variables for the precedence of internationalization
variables used to determine the values of locale categories.)
LC_ALL If set to a non-empty string value, override the values of
all the other internationalization variables.
[...]
So, it seems safer to use LC_ALL to set the locale.
As $^ contains all prerequisites the codespell target fails as
sed tries to get the input from codespell.py and check-dictionary
where checkdictionary isn't a file but a makefile target only.
Use $< instead, as it returns only the first prerequisite.
Also the implementation for SORT_ARGS was completed.
The output of codespell was changed to non-colored in 0c57ab7 ("Update the
handling of colour output for more use-cases.") if stdout is not a
terminal. This is the case for the rule in make check. Just update the
hash so it matches without color.
Install needs a file generated by the other target. Otherwise we have
following build error:
install: cannot stat ‘codespell’: No such file or directory
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Most often users just need the default dictionary, so let's create an option
with default value set to dictonary.txt. Users can overwrite this parameter with
its own dictionary.
By default codespell will check $PWD/data/dictionary.txt file. It is where
dictionary is stored if one uses codespell from sources tar or git repo.
It is expected that package managers will install dictionary to shared data folder
and change default value accordinally.