From 5945c0cdd4a7688a97c391be61611a830c388e7a Mon Sep 17 00:00:00 2001 From: Min ho Kim Date: Fri, 26 Jul 2019 20:25:44 +1000 Subject: [PATCH] Fix numerous typos (#561) Thanks, @minho42! --- datasette/_version.py | 2 +- datasette/views/base.py | 2 +- docs/changelog.rst | 6 +++--- docs/metadata.rst | 2 +- docs/performance.rst | 2 +- versioneer.py | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/datasette/_version.py b/datasette/_version.py index a12f24aa..5783f30f 100644 --- a/datasette/_version.py +++ b/datasette/_version.py @@ -409,7 +409,7 @@ def render_pep440_old(pieces): The ".dev0" means dirty. - Eexceptions: + Exceptions: 1: no tags. 0.postDISTANCE[.dev0] """ if pieces["closest-tag"]: diff --git a/datasette/views/base.py b/datasette/views/base.py index 2c14be57..db1d69d9 100644 --- a/datasette/views/base.py +++ b/datasette/views/base.py @@ -387,7 +387,7 @@ class DataView(BaseView): return await self.as_csv(request, database, hash, **kwargs) if _format is None: - # HTML views default to expanding all foriegn key labels + # HTML views default to expanding all foreign key labels kwargs["default_labels"] = True extra_template_data = {} diff --git a/docs/changelog.rst b/docs/changelog.rst index d04ae2ca..69f799de 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -142,7 +142,7 @@ Datasette can still run against immutable files and gains numerous performance b Faceting improvements, and faceting plugins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Datasette :ref:`facets` provide an intuitive way to quickly summarize and interact with data. Previously the only supported faceting technique was column faceting, but 0.28 introduces two powerful new capibilities: facet-by-JSON-array and the ability to define further facet types using plugins. +Datasette :ref:`facets` provide an intuitive way to quickly summarize and interact with data. Previously the only supported faceting technique was column faceting, but 0.28 introduces two powerful new capabilities: facet-by-JSON-array and the ability to define further facet types using plugins. Facet by array (`#359 `__) is only available if your SQLite installation provides the ``json1`` extension. Datasette will automatically detect columns that contain JSON arrays of values and offer a faceting interface against those columns - useful for modelling things like tags without needing to break them out into a new table. See :ref:`facet_by_json_array` for more. @@ -153,7 +153,7 @@ The new :ref:`plugin_register_facet_classes` plugin hook (`#445 `__ is a brand new serverless hosting platform from Google, which allows you to build a Docker container which will run only when HTTP traffic is recieved and will shut down (and hence cost you nothing) the rest of the time. It's similar to Zeit's Now v1 Docker hosting platform which sadly is `no longer accepting signups `__ from new users. +`Google Cloud Run `__ is a brand new serverless hosting platform from Google, which allows you to build a Docker container which will run only when HTTP traffic is received and will shut down (and hence cost you nothing) the rest of the time. It's similar to Zeit's Now v1 Docker hosting platform which sadly is `no longer accepting signups `__ from new users. The new ``datasette publish cloudrun`` command was contributed by Romain Primet (`#434 `__) and publishes selected databases to a new Datasette instance running on Google Cloud Run. @@ -592,7 +592,7 @@ Mostly new work on the :ref:`plugins` mechanism: plugins can now bundle static a - Longer time limit for test_paginate_compound_keys It was failing intermittently in Travis - see `#209 `_ -- Use application/octet-stream for downloadable databses +- Use application/octet-stream for downloadable databases - Updated PyPI classifiers - Updated PyPI link to pypi.org diff --git a/docs/metadata.rst b/docs/metadata.rst index 0a2aa219..5d9155ea 100644 --- a/docs/metadata.rst +++ b/docs/metadata.rst @@ -62,7 +62,7 @@ Each of the top-level metadata fields can be used at the database and table leve Source, license and about ------------------------- -The three visible metadata fields you can apply to everything, specific databases or specific tables are source, license and about. All three are optionaly. +The three visible metadata fields you can apply to everything, specific databases or specific tables are source, license and about. All three are optional. **source** and **source_url** should be used to indicate where the underlying data came from. diff --git a/docs/performance.rst b/docs/performance.rst index 580d7684..d7f852d5 100644 --- a/docs/performance.rst +++ b/docs/performance.rst @@ -39,7 +39,7 @@ Then later you can start Datasette against the ``counts.json`` file and use it t datasette -i data.db --inspect-file=counts.json -You need to use the ``-i`` immutable mode agaist the databse file here or the counts from the JSON file will be ignored. +You need to use the ``-i`` immutable mode against the databse file here or the counts from the JSON file will be ignored. You will rarely need to use this optimization in every-day use, but several of the ``datasette publish`` commands described in :ref:`publishing` use this optimization for better performance when deploying a database file to a hosting provider. diff --git a/versioneer.py b/versioneer.py index 64fea1c8..e2e8a55b 100644 --- a/versioneer.py +++ b/versioneer.py @@ -180,7 +180,7 @@ two common reasons why `setup.py` might not be in the root: `setup.cfg`, and `tox.ini`. Projects like these produce multiple PyPI distributions (and upload multiple independently-installable tarballs). * Source trees whose main purpose is to contain a C library, but which also - provide bindings to Python (and perhaps other langauges) in subdirectories. + provide bindings to Python (and perhaps other languages) in subdirectories. Versioneer will look for `.git` in parent directories, and most operations should get the right version string. However `pip` and `setuptools` have bugs @@ -805,7 +805,7 @@ def render_pep440_old(pieces): The ".dev0" means dirty. - Eexceptions: + Exceptions: 1: no tags. 0.postDISTANCE[.dev0] """ if pieces["closest-tag"]: @@ -1306,7 +1306,7 @@ def render_pep440_old(pieces): The ".dev0" means dirty. - Eexceptions: + Exceptions: 1: no tags. 0.postDISTANCE[.dev0] """ if pieces["closest-tag"]: