Skip to content

Commit

Permalink
[internal] use set literals (pantsbuild#14045)
Browse files Browse the repository at this point in the history
  • Loading branch information
asherf authored Jan 3, 2022
1 parent 5c10169 commit 0e05e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/backend/go/lint/vet/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def run_go_vet(request: GoVetRequest, go_vet_subsystem: GoVetSubsystem) ->
Get(OwningGoMod, OwningGoModRequest(field_set.address)) for field_set in request.field_sets
)

owning_go_mod_addresses = set(x.address for x in owning_go_mods)
owning_go_mod_addresses = {x.address for x in owning_go_mods}

go_mod_infos = await MultiGet(
Get(GoModInfo, GoModInfoRequest(address)) for address in owning_go_mod_addresses
Expand All @@ -68,7 +68,7 @@ async def run_go_vet(request: GoVetRequest, go_vet_subsystem: GoVetSubsystem) ->
MergeDigests([source_files.snapshot.digest, *(info.digest for info in set(go_mod_infos))]),
)

package_dirs = sorted(set(os.path.dirname(f) for f in source_files.snapshot.files))
package_dirs = sorted({os.path.dirname(f) for f in source_files.snapshot.files})

process_result = await Get(
FallibleProcessResult,
Expand Down

0 comments on commit 0e05e86

Please sign in to comment.