Skip to content

Commit

Permalink
removing modified-iterating-list from lint exclusions and updates (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
joesho112358 authored Apr 24, 2024
1 parent a827aaa commit 3fe2e23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ disable = [
"consider-using-dict-items",
"consider-using-enumerate",
"consider-using-f-string",
"modified-iterating-list",
"nested-min-max",
"no-member",
"no-value-for-parameter",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ def _find_forward_candidates(self, node_id_t):

if self.template_dag_dep.direct_successors(node_id_t):
maximal_index = self.template_dag_dep.direct_successors(node_id_t)[-1]
for elem in pred:
if elem > maximal_index:
pred.remove(elem)
pred = [elem for elem in pred if elem <= maximal_index]

block = []
for node_id in pred:
Expand Down

0 comments on commit 3fe2e23

Please sign in to comment.