From 2866c868d55d197de8c39c34debc878b38929d98 Mon Sep 17 00:00:00 2001 From: Alexandre Avenel Date: Sat, 11 Nov 2017 18:11:15 +0100 Subject: [PATCH] Fix some typos using codespell (#285) --- docs/api.rst | 2 +- docs/installation.rst | 2 +- docs/upgrade.rst | 2 +- ihatemoney/tests/tests.py | 4 ++-- ihatemoney/web.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index 144e6169..9fc9cc6a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -51,7 +51,7 @@ A project needs the following arguments: -d 'name=yay&id=yay&password=yay&contact_email=yay@notmyidea.org' "yay" -As you can see, the API retuns the identifier of the project +As you can see, the API returns the identifier of the project Getting information about the project ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/installation.rst b/docs/installation.rst index 9a5bd5a7..0c3cfac1 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -186,7 +186,7 @@ Production values are recommended values for use in production. | | | **Production value:** `ihatemoney conf-example ihatemoney.cfg` sets it to something | | | | random, which is good. | +-------------------------------+---------------------------------+----------------------------------------------------------------------------------------+ -| MAIL_DEFAULT_SENDER | ``("Budget manager", | A python tuple describing the name and email adress to use when sending | +| MAIL_DEFAULT_SENDER | ``("Budget manager", | A python tuple describing the name and email address to use when sending | | | "budget@notmyidea.org")`` | emails. | | | | | | | | **Production value:** Any tuple you want. | diff --git a/docs/upgrade.rst b/docs/upgrade.rst index 9e48a98d..702008b4 100644 --- a/docs/upgrade.rst +++ b/docs/upgrade.rst @@ -39,7 +39,7 @@ instructions: Switch from git installation to pip installation ++++++++++++++++++++++++++++++++++++++++++++++++ -The recomended installation method is now using *pip*. Git is now intended for +The recommended installation method is now using *pip*. Git is now intended for development only. .. warning:: Be extra careful to not remove your sqlite database nor your diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py index f9187461..123ea365 100644 --- a/ihatemoney/tests/tests.py +++ b/ihatemoney/tests/tests.py @@ -403,7 +403,7 @@ class BudgetTestCase(IhatemoneyTestCase): c.get("/exit") self.assertNotIn('raclette', session) - # test that whith admin credentials, one can access every project + # test that with admin credentials, one can access every project self.app.config['ADMIN_PASSWORD'] = generate_password_hash("pass") with self.app.test_client() as c: resp = c.post("/admin?goto=%2Fraclette", data={'admin_password': 'pass'}) @@ -1192,7 +1192,7 @@ class APITestCase(IhatemoneyTestCase): self.assertDictEqual(expected, json.loads(req.data.decode('utf-8'))) - # the list of bills should lenght 1 + # the list of bills should length 1 req = self.client.get("/api/projects/raclette/bills", headers=self.get_auth("raclette")) self.assertStatus(200, req) diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 7e4c563b..efd843c9 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -359,7 +359,7 @@ def demo(): Authenticate the user for the demonstration project and redirect him to the bills list for this project. - Create a demo project if it doesnt exists yet (or has been deleted) + Create a demo project if it doesn't exists yet (or has been deleted) If the demo project is deactivated, one is redirected to the create project form """ is_demo_project_activated = current_app.config['ACTIVATE_DEMO_PROJECT']