Skip to content

Commit

Permalink
chore: Fix E128
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 10, 2023
1 parent 38186c1 commit c17539d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions postcodes/management/commands/loadpostcodeconcordance.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ def add_arguments(self, parser):
parser.add_argument('slug', nargs=1)
parser.add_argument('source', nargs=1)
parser.add_argument('filename', nargs='?')
parser.add_argument('--searchfield', action='store', dest='search-field',
parser.add_argument(
'--searchfield',
action='store',
dest='search-field',
default='external_id',
help="Set the SQL column to which the second column of the CSV corresponds. One of 'external_id' (default), 'name' or 'slug'.")
help="Set the SQL column to which the second column of the CSV corresponds. One of 'external_id' (default), 'name' or 'slug'.",
)

@transaction.atomic
def handle(self, *args, **options):
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ profile = black
[flake8]
exclude = postcodes/migrations
extend-ignore =
# E128 continuation line under-indented for visual indent
E128,
# E501 line too long (X > 79 characters)
E501

0 comments on commit c17539d

Please sign in to comment.