From 017e74acd6e45af06e20a9e1ce7cdd8510b11412 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 11:43:29 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#513) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 → c4a0b883114b00d8d76b479c820ce7950211c99b](https://github.com/pre-commit/pre-commit-hooks/compare/f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9...c4a0b883114b00d8d76b479c820ce7950211c99b) - [github.com/psf/black: e87737140f32d3cd7c44ede75f02dcd58e55820e → 744d23b34800c06e10272149b70752396e90eeb8](https://github.com/psf/black/compare/e87737140f32d3cd7c44ede75f02dcd58e55820e...744d23b34800c06e10272149b70752396e90eeb8) - [github.com/asottile/pyupgrade: ffb735bf0dc786a3a1e6b08043440b0bdef5bef8 → 1bbebc88c6925a4e56fd5446b830b12c38c1c24a](https://github.com/asottile/pyupgrade/compare/ffb735bf0dc786a3a1e6b08043440b0bdef5bef8...1bbebc88c6925a4e56fd5446b830b12c38c1c24a) * '[pre-commit.ci 🤖] Apply code format tools to PR' --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- numpydoc/tests/test_numpydoc.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d2855d69..b77cd79a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # frozen: v4.4.0 + rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -17,7 +17,7 @@ repos: - id: check-added-large-files - repo: https://github.com/psf/black - rev: e87737140f32d3cd7c44ede75f02dcd58e55820e # frozen: 23.9.1 + rev: 744d23b34800c06e10272149b70752396e90eeb8 # frozen: 23.10.1 hooks: - id: black @@ -34,7 +34,7 @@ repos: - id: blacken-docs - repo: https://github.com/asottile/pyupgrade - rev: ffb735bf0dc786a3a1e6b08043440b0bdef5bef8 # frozen: v3.13.0 + rev: 1bbebc88c6925a4e56fd5446b830b12c38c1c24a # frozen: v3.15.0 hooks: - id: pyupgrade args: [--py38-plus] diff --git a/numpydoc/tests/test_numpydoc.py b/numpydoc/tests/test_numpydoc.py index fd8927d5..8df2205c 100644 --- a/numpydoc/tests/test_numpydoc.py +++ b/numpydoc/tests/test_numpydoc.py @@ -101,7 +101,7 @@ def test_mangle_docstrings_inherited_class_members(): mangle_docstrings(app, "class", "pathlib.PosixPath", PosixPath, {}, lines) lines = [x.strip() for x in lines] assert "samefile" in lines - app.config.numpydoc_show_inherited_class_members = defaultdict(lambda: False) + app.config.numpydoc_show_inherited_class_members = defaultdict(bool) lines = p.split("\n") mangle_docstrings(app, "class", "pathlib.PosixPath", PosixPath, {}, lines) lines = [x.strip() for x in lines]