From bbd9f604af0c681f7ccf2ba3fd26d72661bbf7dd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jun 2023 23:58:46 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#11) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.260 → v0.0.270](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.260...v0.0.270) - [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.3.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.3.0) * fix ruff TD rules --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nathaniel Starkman --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 3 +++ tests/classy/test_components.py | 4 ++-- tests/classy/test_standard.py | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ededa71..cef8332 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - id: text-unicode-replacement-char - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.260" + rev: "v0.0.270" hooks: - id: ruff args: @@ -51,7 +51,7 @@ repos: additional_dependencies: [black] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.1.1" + rev: "v1.3.0" hooks: - id: mypy args: diff --git a/pyproject.toml b/pyproject.toml index 09fab4e..ac01f03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -146,6 +146,9 @@ ignore = [ "N802", "PD", "RET505", "RET506", "RET507", + # flake8-todo (TD) + "TD002", # Missing author in TODO + "TD003", # Missing issue link on the line following this TODO ] [tool.ruff.per-file-ignores] diff --git a/tests/classy/test_components.py b/tests/classy/test_components.py index 1d0f3d4..529bbc9 100644 --- a/tests/classy/test_components.py +++ b/tests/classy/test_components.py @@ -116,7 +116,7 @@ def test_wrapper_is_compliant(self, wrapper): if hasattr(super(), "test_wrapper_is_compliant"): super().test_wrapper_is_compliant(wrapper) - # FIXME: this should be an instance + # TODO: this should be an instance with pytest.raises(NotImplementedError): assert isinstance(wrapper, NeutrinoComponent) @@ -172,7 +172,7 @@ def test_wrapper_is_compliant(self, wrapper): if hasattr(super(), "test_wrapper_is_compliant"): super().test_wrapper_is_compliant(wrapper) - # FIXME: should be a DarkMatterComponent instance + # TODO: should be a DarkMatterComponent instance assert isinstance(wrapper, DarkMatterComponent) def test_Omega_dm0(self, wrapper, cosmo): diff --git a/tests/classy/test_standard.py b/tests/classy/test_standard.py index 96a9482..6b49c84 100644 --- a/tests/classy/test_standard.py +++ b/tests/classy/test_standard.py @@ -64,10 +64,10 @@ def test_wrapper_is_compliant(self, wrapper): """Test that StandardCosmologyWrapper is a StandardCosmologyWrapper.""" super().test_wrapper_is_compliant(wrapper) - # FIXME: it should be an instance + # TODO: it should be an instance with pytest.raises(NotImplementedError): assert isinstance(wrapper, StandardCosmology) - # FIXME: it should be an instance + # TODO: it should be an instance with pytest.raises(NotImplementedError): assert isinstance(wrapper, StandardCosmologyWrapperAPI)