diff --git a/README.md b/README.md index 8e10d027..a8a35e1c 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ using the matched rule and runs it. Rules enabled by default are as follows: * `open` – prepends `http` to address passed to `open`; * `pip_unknown_command` – fixes wrong pip commands, for example `pip instatl/pip install`; * `python_command` – prepends `python` when you trying to run not executable/without `./` python script; -* `python_compile` – appends missing `.py` when compiling and running Python files; +* `python_execute` – appends missing `.py` when executing Python files; * `quotation_marks` – fixes uneven usage of `'` and `"` when containing args' * `rm_dir` – adds `-rf` when you trying to remove directory; * `sl_ls` – changes `sl` to `ls`; diff --git a/tests/rules/test_python_compile.py b/tests/rules/test_python_execute.py similarity index 87% rename from tests/rules/test_python_compile.py rename to tests/rules/test_python_execute.py index c3986503..168cb59b 100644 --- a/tests/rules/test_python_compile.py +++ b/tests/rules/test_python_execute.py @@ -1,5 +1,5 @@ import pytest -from thefuck.rules.python_compile import match, get_new_command +from thefuck.rules.python_execute import match, get_new_command from tests.utils import Command diff --git a/thefuck/rules/python_compile.py b/thefuck/rules/python_execute.py similarity index 88% rename from thefuck/rules/python_compile.py rename to thefuck/rules/python_execute.py index 1b15aab6..d4d9d266 100644 --- a/thefuck/rules/python_compile.py +++ b/thefuck/rules/python_execute.py @@ -1,4 +1,4 @@ -# Appends .py when compiling python files +# Appends .py when executing python files # # Example: # > python foo