Skip to content

Commit

Permalink
Merge pull request #76 from CodeFerriCode/redisable-superfluous-parens
Browse files Browse the repository at this point in the history
Disable pylint superfluous-parens only on the false positive line
  • Loading branch information
flopp authored Nov 1, 2020
2 parents f1e57fb + 76ffa85 commit e0703c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ disable=
broad-except,
duplicate-code,
missing-docstring,
superfluous-parens,
too-few-public-methods,
too-many-arguments,
too-many-instance-attributes,
Expand Down
4 changes: 3 additions & 1 deletion gpxtrackposter/track_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ def load_strava_tracks(self, strava_config: str) -> typing.List[Track]:
# tricky to pass the timezone
if str(activity.id) in tracks_names:
continue
if filter_type and activity.type not in ([filter_type] if isinstance(filter_type, str) else filter_type):
if filter_type and activity.type not in (
[filter_type] if isinstance(filter_type, str) else filter_type
): # pylint: disable=superfluous-parens
continue
t = Track()
t.load_strava(activity)
Expand Down

0 comments on commit e0703c5

Please sign in to comment.