Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#11)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.260 → v0.0.270](astral-sh/ruff-pre-commit@v0.0.260...v0.0.270)
- [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.3.0](pre-commit/mirrors-mypy@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 <nstarman@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and nstarman committed Jun 6, 2023
1 parent 0cfaab4 commit bbd9f60
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/classy/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions tests/classy/test_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit bbd9f60

Please sign in to comment.