Move bin/codespell.py to bin/codespell

From discussion in GH#85, the executable was renamed to
codespell to preserve backward compatibility with how
the Makefile used to install the library.
This commit is contained in:
Eric Larson
2016-08-18 10:58:22 -04:00
parent 94ddc3369b
commit fb6f01db96
4 changed files with 5 additions and 5 deletions

View File

@ -18,12 +18,12 @@ from codespell_lib import main
def run_codespell(args=(), cwd=None):
"""Helper to run codespell"""
return subprocess.Popen(
['codespell.py'] + list(args), cwd=cwd,
['codespell'] + list(args), cwd=cwd,
stdout=subprocess.PIPE, stderr=subprocess.PIPE).wait()
def test_command():
"""Test running codespell.py"""
"""Test running the codespell executable"""
# With no arguments does "."
with TemporaryDirectory() as d:
assert_equal(run_codespell(cwd=d), 0)