Three men have been arrested after shots were fired at two vehicles near a retail park.
Gunshots were heard at about 17:40 BST in Great Northern Street, Huddersfield, and it appeared two vehicles had been shot at, West Yorkshire Police said.
Officers said a gun was seized and a grey saloon car, thought to have been involved in the attack, was found.
Three men have been arrested on suspicion of firearms offences and remain in custody. No-one was injured.
Police said they believed it had been a targeted attack but "reassurance patrols" have been put on.
The street runs alongside the Great Northern Retail Park.