From 5bbc42aa1fc9db6018593e27b8e4b95046d882d2 Mon Sep 17 00:00:00 2001 From: Remi-Andre Olsen Date: Wed, 6 Mar 2024 15:20:15 +0100 Subject: [PATCH] Re-ruff to version 0.3.0 --- .pre-commit-config.yaml | 2 +- anglerfish/explore/explore.py | 6 +++--- setup.py | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4162f50..767b45d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ # .pre-commit-config.yaml repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.13 + rev: v0.3.0 hooks: - id: ruff - id: ruff-format diff --git a/anglerfish/explore/explore.py b/anglerfish/explore/explore.py index 8f72498..fe0f846 100644 --- a/anglerfish/explore/explore.py +++ b/anglerfish/explore/explore.py @@ -134,9 +134,9 @@ def run_explore( ) match_col_df = match_col_df.astype({"match_1_len": "int32"}) - df_good_hits.loc[ - match_col_df.index, match_col_df.columns - ] = match_col_df + df_good_hits.loc[match_col_df.index, match_col_df.columns] = ( + match_col_df + ) thres = round( ( diff --git a/setup.py b/setup.py index 71d6968..47d8660 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ conda install -c bioconda anglerfish """ + from pathlib import Path from setuptools import find_packages, setup