California plans to ask a state court judge to force Uber Technologies Inc. and Lyft Inc. to classify their ride-hail drivers as employees rather than contractors, ratcheting up the tension over a new gig worker law.

A hearing for the matter was set for Aug. 6.

In a filing in the Superior Court of California in San Francisco on Wednesday, lawyers for California Attorney General Xavier Becerra said their office will file a request for a preliminary injunction.

Uber in a statement said most drivers preferred the independence afforded by working as contractors and that it calculated more than 158,000 Uber drivers in California would lose work if the reclassification happened.

Lyft and the office for the state’s attorney general did not immediately respond to a request for comment.