Skip to content

Commit

Permalink
disable B011 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Jan 31, 2025
1 parent 70a0757 commit 4090a78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ convention = "numpy"
ignore-fully-untyped = true # Turn of annotation checking for fully untyped code

[lint.per-file-ignores]
"**/test_*.py" = ["S101", "SLF001"]
"**/test_*.py" = ["S101", "SLF001", "B011"]
"tests/**" = ["INP001"]
"src/stdatamodels/jwst/datamodels/darkMIRI.py" = ["N999"]
2 changes: 1 addition & 1 deletion src/stdatamodels/jwst/datamodels/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ def cb(subschema, path, combiner, ctx, recurse):
elif "http://stsci.edu/schemas/jwst_datamodel/referencefile.schema" in seen_ids:
assert "http://stsci.edu/schemas/jwst_datamodel/core.schema" not in seen_ids
else:
assert False # noqa: B011
assert False
2 changes: 1 addition & 1 deletion tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_add_schema_entry():
except ValidationError:
pass
else:
assert False # noqa: B011
assert False


def test_validate_transform(tmp_path):
Expand Down

0 comments on commit 4090a78

Please sign in to comment.