From 15d0411a8678fe462a6b78f361f74ca369aee07e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 23:05:02 +0000 Subject: [PATCH 1/2] ci(pre-commit.ci): autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/crate-ci/typos: v1.22.0 → typos-dict-v0.11.27](https://github.com/crate-ci/typos/compare/v1.22.0...typos-dict-v0.11.27) - [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.6.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.7...v0.6.3) - [github.com/abravalheri/validate-pyproject: v0.18 → v0.19](https://github.com/abravalheri/validate-pyproject/compare/v0.18...v0.19) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.11.2) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 816f7495..0a2f5c14 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,24 +7,24 @@ exclude: .asv repos: - repo: https://github.com/crate-ci/typos - rev: v1.22.0 + rev: typos-dict-v0.11.27 hooks: - id: typos - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.7 + rev: v0.6.3 hooks: - id: ruff args: [--fix, --unsafe-fixes] - id: ruff-format - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.18 + rev: v0.19 hooks: - id: validate-pyproject - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.11.2 hooks: - id: mypy exclude: tests|_throttler.pyi From a587e3f3a00c020d146d537eaed6331184b4e75b Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Mon, 9 Sep 2024 14:00:29 -0400 Subject: [PATCH 2/2] lint --- .pre-commit-config.yaml | 4 ++-- tests/test_group_descriptor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a2f5c14..775e5c1c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,12 +7,12 @@ exclude: .asv repos: - repo: https://github.com/crate-ci/typos - rev: typos-dict-v0.11.27 + rev: v1.24.5 hooks: - id: typos - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.3 + rev: v0.6.4 hooks: - id: ruff args: [--fix, --unsafe-fixes] diff --git a/tests/test_group_descriptor.py b/tests/test_group_descriptor.py index d54805c1..98270b05 100644 --- a/tests/test_group_descriptor.py +++ b/tests/test_group_descriptor.py @@ -263,7 +263,7 @@ class Bar(Foo): assert "b" in bar.events else: - assert type(foo.events) == signal_class + assert type(foo.events) is signal_class assert "a" not in foo.events assert "a" not in bar.events assert "b" not in bar.events