From 1ca0105f45e0d849bc0a31dd878628535182836a 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 17:18:36 +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: 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-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d2855d69..656953ce 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] From f898dc383a58ce466e2ff27f8da811ab5cee799c 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 17:18:46 +0000 Subject: [PATCH 2/2] =?UTF-8?q?'[pre-commit.ci=20=F0=9F=A4=96]=20Apply=20c?= =?UTF-8?q?ode=20format=20tools=20to=20PR'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .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 656953ce..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: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.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: 744d23b34800c06e10272149b70752396e90eeb8 # frozen: 23.10.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: 1bbebc88c6925a4e56fd5446b830b12c38c1c24a # frozen: v3.15.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]