The Weeknd Pleads No Contest To Punching A Cop

10/22/2015 6:06 PM PDT BY TMZ STAFF

1022-the-weekend-tmz-mug-shot-4The Weeknd will avoid time behind bars after pleading no contest for punching a Vegas cop ... as long as Mr. "Can't Feel My Face" keeps his nose clean ...

The singer entered his plea in a Vegas court Wednesday for the January arrest. He was ordered to pay $1,000 to an injured cop fund, complete anger management and an alcohol evaluation. He'll also have to complete 50 hours of community service. The judge is letting him do the hours at a non-profit group in his native Canada. 

TMZ broke the story ... The Weeknd was arrested after punching a cop in the head during a fight at the Cromwell Hotel. 

If he meets all requirements, including staying out of any new trouble, the case will be dismissed.