Skip to content

Commit 735b6a7

Browse files
authored
Merge pull request #25 from pvernier/fix-flake8-venv-exclusion
Fix flake8 failures in CI
2 parents 82b0256 + 18abd23 commit 735b6a7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[flake8]
22
extend-ignore = E501, E741
3-
exclude = .git,__pycache__
3+
exclude = .git,__pycache__,.venv
44
per-file-ignores =
55
# imported but unused
66
__init__.py: F401

pykobo/form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def _extract_repeats(self, rows: list) -> None:
385385
repeats = {}
386386
for idx_parent, row in enumerate(rows):
387387
for column, value in row.items():
388-
if not column.startswith("_") and type(value) == list:
388+
if not column.startswith("_") and isinstance(value, list):
389389
repeat_name = column.split("/")[-1]
390390
if repeat_name not in repeats:
391391
repeats[repeat_name] = []

pykobo/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def reconcile_columns(
6464
df.loc[(df[col1].isnull()), "_temp"] = df[col2]
6565

6666
df.loc[(df[col1].notnull()), "_temp"] = df[col1]
67-
elif type(criteria) == str:
67+
elif isinstance(criteria, str):
6868
df.loc[(df[col1] == criteria), "_temp"] = df[col2]
6969

7070
df.loc[(df[col1] != criteria), "_temp"] = df[col1]

0 commit comments

Comments
 (0)