Skip to content

Commit

Permalink
Checks: flake8 F841 (local variable assigned to but never used) fixes…
Browse files Browse the repository at this point in the history
… in the temporal directory (#4229)
  • Loading branch information
mshukuno authored Sep 12, 2024
1 parent 5de8682 commit 8c23c2e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,10 @@ per-file-ignores =
scripts/v.what.strds/v.what.strds.py: E722, E501
# Line too long (esp. module interface definitions)
scripts/*/*.py: E501
# local variable 'column' is assigned to but never used
temporal/t.rast.to.vect/t.rast.to.vect.py: E501
# local variable 'stdstype' is assigned to but never used
temporal/t.vect.algebra/t.vect.algebra.py: F841, E501
temporal/t.vect.algebra/t.vect.algebra.py: E501
# ## used (##% key: r etc)
# local variable 'map_list' is assigned to but never used
temporal/t.rast.what/t.rast.what.py: E265, E266, F841, E501
temporal/t.rast.what/t.rast.what.py: E265, E266, E501
# Line too long (esp. module interface definitions)
temporal/*/*.py: E501

Expand Down
1 change: 0 additions & 1 deletion temporal/t.rast.what/t.rast.what.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ def one_point_per_col_output(
for count in range(len(output_files)):
file_name = output_files[count]
gs.verbose(_("Transforming r.what output file %s" % (file_name)))
map_list = output_time_list[count]
in_file = open(file_name, "r")
lines = in_file.readlines()

Expand Down
1 change: 0 additions & 1 deletion temporal/t.vect.algebra/t.vect.algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def main():
expression = options["expression"]
basename = options["basename"]
spatial = flags["s"]
stdstype = "stvds"

# Check for PLY istallation
try:
Expand Down

0 comments on commit 8c23c2e

Please sign in to comment.