A police inquiry was launched after windows at two homes were shot through in night-time attacks.
No-one was injured in the shootings, which the Yorkshire Evening Post believes may be linked to the drugs underworld.
Two men were arrested in the aftermatch of the shootings on suspicion of drugs offences.
In the first incident at 11pm on Wednesday, July 20, a window was shot through at a flat in Gamble Hill Grange, Bramley, Leeds.
At least one person was believed to have been inside the house at the time, but they were uninjured.
Armed officers are understood to have been sent to the scene and a man aged about 30 was arrested from the address on suspicion of committing drugs offences.
Officers sealed off the scene.
At 12.50am on Thursday, July 21, a second almost identical incident was reported to have occurred at a house in Briar Mains Road, Birstall, Dewsbury, when again a house window was shot through with a firearm from the outside by a mystery gunman.
Again fortunately the occupants of the property were not hit by the shot and were unharmed. Later a 20-year-old man was also arrested from the property on suspicion of committing drugs offences.
A spokesman for the West Yorkshire Police homicide and major inquiry team said that both shooting incidents are believed to be connected to each other and that both were targeted and not random attacks.
Det Supt Dave Pervin appealed for anyone who witnessed suspicious activity in the vicinity of either incident or who has information to ring HMET on 0845 6060606 or Crimestoppers on 0800 555 111.