Skip to content

Commit e6c31af

Browse files
Fix: sort imports with isort and fix remaining bare except
1 parent ae2043c commit e6c31af

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

environment.osx-arm64.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dependencies:
3838
- pip
3939
- pip:
4040
- build
41+
- isort
4142
- twine
4243
- hatchling
4344
- wheel

scripts/fdr_analysis.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@
2020
__status__ = Dev
2121
"""
2222

23-
import matplotlib.pyplot as plt
24-
import matplotlib.lines as mlines
25-
import pandas as pd
26-
import seaborn as sns
23+
import json
24+
import logging
2725
import os
2826
import sys
29-
import logging
30-
import json
3127
from pathlib import Path
3228

29+
import matplotlib.lines as mlines
30+
import matplotlib.pyplot as plt
31+
import pandas as pd
32+
import seaborn as sns
33+
34+
from instanexus import helpers, preprocessing, visualization
3335
from instanexus.assembly import Assembler
34-
from instanexus import visualization, helpers, preprocessing
3536

3637
SCRIPT_DIR = Path(__file__).resolve().parent
3738
PROJECT_ROOT = SCRIPT_DIR.parent
@@ -116,7 +117,7 @@ def load_custom_palette():
116117
color = colors_data.get(json_key, {}).get("scaffold", "#333333")
117118
custom_palette[category_label] = color
118119
return custom_palette
119-
except:
120+
except Exception:
120121
return default_palette
121122

122123

src/instanexus/assembly.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
# import libraries
2424
import argparse
25+
import ast
2526
import logging
2627
import math
27-
import ast
2828
from collections import Counter, defaultdict
2929
from dataclasses import dataclass
3030
from itertools import combinations
@@ -36,9 +36,8 @@
3636
import pandas as pd
3737
from tqdm import tqdm
3838

39-
from . import helpers
39+
from . import helpers, preprocessing
4040
from . import visualization as viz
41-
from . import preprocessing
4241

4342
logging.basicConfig(level=logging.INFO)
4443
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)