From 0569e462c005b97e09c106b36413d276dc8319b9 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 4 Sep 2022 07:33:40 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - README.md - docs/source/conf.py - magicembed/providers.py - magicembed/tests/runtests.py - magicembed/tests/south_settings.py Fixes: - Should read `that` rather than `shat`. - Should read `specific` rather than `specifiv`. - Should read `requirements` rather than `requeriments`. - Should read `persistent` rather than `persistant`. - Should read `according` rather than `acording`. Signed-off-by: Tim Gates --- README.md | 2 +- docs/source/conf.py | 2 +- magicembed/providers.py | 2 +- magicembed/tests/runtests.py | 2 +- magicembed/tests/south_settings.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cbe139c..17993c7 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ To get the latest commit from GitHub pip install -e git+git://github.com/kronoscode/django-magicembed.git#egg=magicembed ``` -If you have a requeriments list add this to your requeriments +If you have a requirements list add this to your requirements 1. magicembed==(version) diff --git a/docs/source/conf.py b/docs/source/conf.py index 9c9e69b..8570aed 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -334,7 +334,7 @@ # The format is a list of tuples containing the path and title. #epub_pre_files = [] -# HTML files shat should be inserted after the pages created by sphinx. +# HTML files that should be inserted after the pages created by sphinx. # The format is a list of tuples containing the path and title. #epub_post_files = [] diff --git a/magicembed/providers.py b/magicembed/providers.py index b9a2529..1324b21 100644 --- a/magicembed/providers.py +++ b/magicembed/providers.py @@ -81,7 +81,7 @@ def _call_api(self): def get_provider(url, size=None): - '''returns a provider instance acording to the url''' + '''returns a provider instance according to the url''' provider_domain = dict(youtube=Youtube, vimeo=Vimeo) for domain, provider in provider_domain.items(): if domain in url: diff --git a/magicembed/tests/runtests.py b/magicembed/tests/runtests.py index 6ffb5b7..5b2dbf9 100755 --- a/magicembed/tests/runtests.py +++ b/magicembed/tests/runtests.py @@ -1,7 +1,7 @@ #!/usr/bin/env python """ This script is a trick to setup a fake Django environment, since this reusable -app will be developed and tested outside any specifiv Django project. +app will be developed and tested outside any specific Django project. Via ``settings.configure`` you will be able to set all necessary settings for your app and run the tests as if you were calling ``./manage.py test``. diff --git a/magicembed/tests/south_settings.py b/magicembed/tests/south_settings.py index 43aff04..81140f1 100644 --- a/magicembed/tests/south_settings.py +++ b/magicembed/tests/south_settings.py @@ -3,7 +3,7 @@ With normal tests we want to use the fastest possible way which is an in-memory sqlite database but if you want to create South migrations you -need a persistant database. +need a persistent database. Unfortunately there seems to be an issue with either South or syncdb so that defining two routers ("default" and "south") does not work.