mirror of
https://github.com/codespell-project/codespell.git
synced 2025-08-06 09:40:56 +08:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user