Skip to content

Commit

Permalink
F841 local variable 'parse_cmd_body' is assigned to but never used (#296
Browse files Browse the repository at this point in the history
)

fixes the name of the variable used in the PyMethod

Signed-off-by: Mircea Dan <[email protected]>
  • Loading branch information
mgheorghe authored Apr 25, 2023
1 parent 99b19d5 commit ba57e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
rev: 6.0.0
hooks:
- id: flake8
args: ["--max-line-length=201", "--extend-ignore=F601,F821,F841"]
args: ["--max-line-length=201", "--extend-ignore=F601,F821"]

# F601 - https://github.com/dentproject/testing/issues/284
# F821 - https://github.com/dentproject/testing/issues/278
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def generate_code(self):
parse_cmd_body = tokenize(py_impl_class_common_parse_cmd % cargs)
methods.append(
PyMethod(
'parse_%s' % cmd.name, 'self, command, output, *argv, **kwarg', format_cmd_body, indent=4,
'parse_%s' % cmd.name, 'self, command, output, *argv, **kwarg', parse_cmd_body, indent=4,
)
)
self._classes.append(
Expand Down

0 comments on commit ba57e11

Please sign in to comment.