From 84f1c611907a99770448e2c02d961d884508ad1d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 21:24:15 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6) - [github.com/astral-sh/ruff-pre-commit: v0.0.291 → v0.0.292](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.291...v0.0.292) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00e92c3c6..03d171a1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: "asdf/(extern||_jsonschema)/.*" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-ast @@ -29,7 +29,7 @@ repos: - id: text-unicode-replacement-char - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell args: ["--write-changes"] @@ -43,7 +43,7 @@ repos: exclude: "asdf/(extern||_jsonschema)/.*" - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.0.291' + rev: 'v0.0.292' hooks: - id: ruff args: ["--fix"] From d44e5feef1f34eb97700adf5b36dbabb985fd8c2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 21:24:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- asdf/_block/manager.py | 2 +- docs/asdf/extending/resources.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asdf/_block/manager.py b/asdf/_block/manager.py index 300e5904f..c0c589cc9 100644 --- a/asdf/_block/manager.py +++ b/asdf/_block/manager.py @@ -16,7 +16,7 @@ class ReadBlocks(collections.UserList): A list of ReadBlock instances. A simple list can't be used as other code will need - to genearate a weakref to instances of this class + to generate a weakref to instances of this class (and it is not possible to generate a weakref to a list). """ diff --git a/docs/asdf/extending/resources.rst b/docs/asdf/extending/resources.rst index d460be150..65a611aab 100644 --- a/docs/asdf/extending/resources.rst +++ b/docs/asdf/extending/resources.rst @@ -23,7 +23,7 @@ Installing resources via AsdfConfig The simplest way to install a resource into `asdf` is to add it at runtime using the `AsdfConfig.add_resource_mapping ` method. -For example, the following code istalls a schema for use with the `asdf.AsdfFile` +For example, the following code installs a schema for use with the `asdf.AsdfFile` custom_schema argument: .. code-block:: python