Skip to content

Commit

Permalink
Fix R1718
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla committed Mar 5, 2024
1 parent ac262f0 commit cc52de8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
# C0103: Variable name doesn't conform to naming style
# R1732: Consider using with
# W1514: Using open without explicitly specifying an encoding
# R1718: Consider using set comprehension
# E1101: Nonexistent member
# E0401: Unable to import
# W0212: Access to a protected member
Expand Down Expand Up @@ -74,7 +73,7 @@
max-line-length = 120
disable = C0114, C0115, C0116, R0903, C0415, R1705, R0913, W1203, R1729, E1120, E1123, C0209, R1710, W0621, C0121,
W0614, W0401, W1202, C0117, W0718, R0205, R0402, R0914, R1725, R1735, C0411, W0237, W0702, W0223, W0613,
W0108, R0912, R0911, W0511, E1136, R0902, W0611, C0412, C0103, C0301, R1732, R0915, W1514, R1718,
W0108, R0912, R0911, W0511, E1136, R0902, W0611, C0412, C0103, C0301, R1732, R0915, W1514,
E1101, R1734, W1201,
E0401, W0212, R0904, W0101,
C0302, E0110, W0603, R0401, C0303, W4902
2 changes: 1 addition & 1 deletion pros/conductor/project/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def libscanbuild_capture(args: argparse.Namespace) -> Tuple[int, Iterable[Compil
if copy:
cxx_sysroot_includes.append(f'-isystem{line}')
new_entries, entries = itertools.tee(entries, 2)
new_sources = set([e.source for e in entries])
new_sources = {e.source for e in entries}
if not cdb_file:
cdb_file = os.path.join(self.directory, 'compile_commands.json')
if isinstance(cdb_file, str) and os.path.isfile(cdb_file):
Expand Down

0 comments on commit cc52de8

Please sign in to comment.