Skip to content

Commit

Permalink
Ensure we always run flake8-bugbear
Browse files Browse the repository at this point in the history
This assumes that we no longer use Python 2.7 for running the flake8
tests any more.
  • Loading branch information
arthurdejong committed Nov 13, 2022
1 parent a03ac04 commit 74cc981
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stdnum/cz/bankaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _info(bank):
"""Look up information for the bank."""
from stdnum import numdb
info = {}
for nr, found in numdb.get('cz/banks').info(bank):
for _nr, found in numdb.get('cz/banks').info(bank):
info.update(found)
return info

Expand Down
2 changes: 1 addition & 1 deletion stdnum/nz/bankaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def info(number):
number = compact(number)
from stdnum import numdb
info = {}
for nr, found in numdb.get('nz/banks').info(number):
for _nr, found in numdb.get('nz/banks').info(number):
info.update(found)
return info

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ skip_install = true
deps = flake8
flake8-author
flake8-blind-except
py{35,36,37,38}: flake8-bugbear
flake8-bugbear
flake8-class-newline
flake8-commas
flake8-deprecated
Expand Down
2 changes: 1 addition & 1 deletion update/iban.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_country_codes(line):
for i, c in enumerate(row[1:]):
values[i][row[0]] = c
# output the collected data
for i, data in values.items():
for _i, data in values.items():
bban = data['BBAN structure']
if not bban or bban.lower() == 'n/a':
bban = data['IBAN structure']
Expand Down

0 comments on commit 74cc981

Please sign in to comment.