Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #11

Merged
merged 2 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading