The 21 year old and 18 year old are being questioned after the incident on Lockwood Road in the early hours of Saturday.
Detectives have made two arrests and continue to appeal for information as investigations continue into a shooting incident in Huddersfield.
The Homicide and Major Enquiry Team have said they are still very keen to speak to witnesses regarding a firearms discharge outside the Woolpack apartments on Lockwood Road, Huddersfield at about 12.50am on Saturday May 20).
A 34-year-old man received a none life threatening injury to his shoulder in the incident and was treated in hospital.
Officers executed a number of warrants across Huddersfield over the weekend and arrested an 18 year-old male on Sunday and a 21-year-old man earlier this morning.
Both remain in custody and are being questioned on suspicion of attempted murder.
DCI Vanessa Rolfe of the Homicide and Major Enquiry Team who is leading the investigation said:
“We continue to follow a number of lines of enquiry in this investigation and have made arrests with suspects being questioned today.
“We are still very much appealing for witnesses however, and I urge anyone who may have information which could assist us in investigating this very serious incident to come forwards.”
Detective Superintendent Jim Griffiths of Kirklees District Police, said:
“Any offence of violence and particularly those where firearms are used is a key focus for policing in Kirklees. Our local officers are being supported in this enquiry by specialist officers from our HMET and central firearms teams.
“We have been updating as many local community contacts as we can regarding this investigation and our focus is on stopping this type of violence within Kirklees.
“In order to do this, we must have the support of our local communities and we need information, no matter how small it may seem to let us piece together what is happening and how we can prevent further incidents such as this.”
Information can be given to the Homicide and Major Enquiry Team on 101 referencing operation Pitonmay or online at www.westyorkshire.police.uk/101livechat
Reports can also be made anonymously to the independent Crimestoppers charity on 0800 555 111.