Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3255)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.1 →
v0.5.2](astral-sh/ruff-pre-commit@v0.5.1...v0.5.2)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: C. Titus Brown <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and ctb authored Jul 15, 2024
1 parent b720ccc commit 55f26bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: check-toml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.5.2
hooks:
- id: ruff-format
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion src/sourmash/sbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def save(self, path, storage=None, sparseness=0.0, structure_only=False):
storage = FSStorage(location, subdir)
index_filename = os.path.join(location, index_filename)

backend = [k for (k, v) in STORAGES.items() if v == type(storage)][0]
backend = [k for (k, v) in STORAGES.items() if v is type(storage)][0]
storage_args = storage.init_args()

info["storage"] = {"backend": backend, "args": storage_args}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_make_jaccard_search_query_best_only():

assert search_obj.score_fn == search_obj.score_jaccard
assert not search_obj.require_scaled
assert type(search_obj) == search.JaccardSearchBestOnly
assert type(search_obj) is search.JaccardSearchBestOnly


def test_make_jaccard_search_query_no_threshold_none():
Expand Down

0 comments on commit 55f26bc

Please sign in to comment.