summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKian-Meng Ang <kianmeng.ang@gmail.com>2022-06-09 02:38:29 +0800
committerGitHub <noreply@github.com>2022-06-08 11:38:29 -0700
commitd608ffe7c78a4399a554659addfb1300a92b5418 (patch)
treea560cfd2faeaf3b9da8887e6d9f3961ae29f755b
parent18071754bc0c79a7109c5ccfdaa74ed913c343ba (diff)
Fix typos (#1345)
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
-rw-r--r--AUTHORS1
-rw-r--r--changelog.rst5
-rw-r--r--pgcli/packages/parseutils/tables.py2
-rw-r--r--pgcli/packages/sqlcompletion.py2
-rw-r--r--pgcli/pgexecute.py2
-rw-r--r--tests/features/environment.py2
-rw-r--r--tests/test_rowlimit.py2
-rw-r--r--tests/test_sqlcompletion.py2
8 files changed, 10 insertions, 8 deletions
diff --git a/AUTHORS b/AUTHORS
index a14e7ca5..2bf68e87 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -121,6 +121,7 @@ Contributors:
* Bruno Inec (sweenu)
* Daniele Varrazzo
* Daniel Kukula (dkuku)
+ * Kian-Meng Ang (kianmeng)
Creator:
--------
diff --git a/changelog.rst b/changelog.rst
index a4f1dc24..94d51f6f 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -5,6 +5,7 @@ Internal:
---------
* Port to psycopg3 (https://github.com/psycopg/psycopg). Needs a major version bump.
+* Fix typos
3.4.1 (2022/03/19)
==================
@@ -771,7 +772,7 @@ Internal Changes:
* Added code coverage to the tests. (Thanks: `Irina Truong`_)
* Run behaviorial tests as part of TravisCI (Thanks: `Irina Truong`_)
* Upgraded prompt_toolkit version to 0.45 (Thanks: `Jonathan Slenders`_)
-* Update the minumum required version of click to 4.1.
+* Update the minimum required version of click to 4.1.
0.18.0
======
@@ -1009,7 +1010,7 @@ Features:
* IPython integration through `ipython-sql`_ (Thanks: `Darik Gamble`_)
* Add an ipython magic extension to embed pgcli inside ipython.
* Results from a pgcli query are sent back to ipython.
-* Multiple sql statments in the same line separated by semi-colon. (Thanks: https://github.com/macobo)
+* Multiple sql statements in the same line separated by semi-colon. (Thanks: https://github.com/macobo)
.. _`ipython-sql`: https://github.com/catherinedevlin/ipython-sql
diff --git a/pgcli/packages/parseutils/tables.py b/pgcli/packages/parseutils/tables.py
index f2e1e42b..90981159 100644
--- a/pgcli/packages/parseutils/tables.py
+++ b/pgcli/packages/parseutils/tables.py
@@ -139,7 +139,7 @@ def extract_table_identifiers(token_stream, allow_functions=True):
# extract_tables is inspired from examples in the sqlparse lib.
def extract_tables(sql):
- """Extract the table names from an SQL statment.
+ """Extract the table names from an SQL statement.
Returns a list of TableReference namedtuples
diff --git a/pgcli/packages/sqlcompletion.py b/pgcli/packages/sqlcompletion.py
index 63053018..be4933a7 100644
--- a/pgcli/packages/sqlcompletion.py
+++ b/pgcli/packages/sqlcompletion.py
@@ -380,7 +380,7 @@ def suggest_based_on_last_token(token, stmt):
)
elif p.token_first().value.lower() == "select":
- # If the lparen is preceeded by a space chances are we're about to
+ # If the lparen is preceded by a space chances are we're about to
# do a sub-select.
if last_word(stmt.text_before_cursor, "all_punctuations").startswith("("):
return (Keyword(),)
diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py
index 128b7e05..758a3159 100644
--- a/pgcli/pgexecute.py
+++ b/pgcli/pgexecute.py
@@ -372,7 +372,7 @@ class PGExecute:
"""Return true if e is an error that should not be caught in ``run``.
An uncaught error will prompt the user to reconnect; as long as we
- detect that the connection is stil open, we catch the error, as
+ detect that the connection is still open, we catch the error, as
reconnecting won't solve that problem.
:param e: DatabaseError. An exception raised while executing a query.
diff --git a/tests/features/environment.py b/tests/features/environment.py
index b93c12ec..6cc8e14c 100644
--- a/tests/features/environment.py
+++ b/tests/features/environment.py
@@ -149,7 +149,7 @@ def after_all(context):
context.conf["port"],
)
- # Remove temp config direcotry
+ # Remove temp config directory
shutil.rmtree(context.env_config_home)
# Restore env vars.
diff --git a/tests/test_rowlimit.py b/tests/test_rowlimit.py
index 947fc80d..da916b4d 100644
--- a/tests/test_rowlimit.py
+++ b/tests/test_rowlimit.py
@@ -4,7 +4,7 @@ from unittest.mock import Mock
from pgcli.main import PGCli
-# We need this fixtures beacause we need PGCli object to be created
+# We need this fixtures because we need PGCli object to be created
# after test collection so it has config loaded from temp directory
diff --git a/tests/test_sqlcompletion.py b/tests/test_sqlcompletion.py
index 744fadb0..1034bbe2 100644
--- a/tests/test_sqlcompletion.py
+++ b/tests/test_sqlcompletion.py
@@ -844,7 +844,7 @@ def test_alter_column_type_suggests_types():
"CREATE FUNCTION foo (bar INT, baz ",
"SELECT * FROM foo() AS bar (baz ",
"SELECT * FROM foo() AS bar (baz INT, qux ",
- # make sure this doesnt trigger special completion
+ # make sure this doesn't trigger special completion
"CREATE TABLE foo (dt d",
],
)