Skip to content

Commit

Permalink
fix up pylint & whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzoic committed Jun 11, 2024
1 parent f573e33 commit f9302ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 2 additions & 4 deletions countess/plugins/pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ class PivotPlugin(PandasProcessPlugin):
"columns": PerColumnArrayParam(
"Columns", ChoiceParam("Role", "Drop", choices=["Index", "Pivot", "Expand", "Drop"])
),
"aggfunc": ChoiceParam(
"Aggregation Function", "sum", choices=["sum", "mean", "min", "max"]
)
"aggfunc": ChoiceParam("Aggregation Function", "sum", choices=["sum", "mean", "min", "max"]),
}

input_columns: Dict[str, np.dtype] = {}

dataframes: List[pd.DataFrame] = None
dataframes: Optional[List[pd.DataFrame]] = None

def prepare(self, sources: List[str], row_limit: Optional[int] = None):
self.input_columns = {}
Expand Down
8 changes: 4 additions & 4 deletions countess/utils/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,12 @@ def _ref(pos):
# Handle calling synonymous changes
assert end - start == opcode.dest_end - opcode.dest_start
start_ofs = None
for ofs in range(0, end-start):
src_dna = ref_seq[(start+ofs)*3+frame:][:3]
dest_dna = var_seq[(opcode.dest_start+ofs)*3+frame:][:3]
for ofs in range(0, end - start):
src_dna = ref_seq[(start + ofs) * 3 + frame :][:3]
dest_dna = var_seq[(opcode.dest_start + ofs) * 3 + frame :][:3]
if src_dna == dest_dna:
if start_ofs is not None:
if start_ofs == ofs-1:
if start_ofs == ofs - 1:
yield f"{_ref(start+start_ofs)}="
else:
yield f"{_ref(start+start_ofs)}_{_ref(start+ofs-1)}="
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dev = [
'build==0.10.0',
'coverage==7.3.2',
'mypy~=1.0.1',
'pylint~=2.17',
'pylint~=3.2.3',
'types-psutil~=5.9.5',
'types-ttkthemes~=3.2',
'twine==4.0.2',
Expand Down Expand Up @@ -102,6 +102,7 @@ disable = [
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"too-many-nested-blocks",
"too-many-statements",
"too-few-public-methods",
"too-many-public-methods",
Expand Down

0 comments on commit f9302ea

Please sign in to comment.