State tax filing

The exceptions are temporary absence for school or medical treatment.
You can find the complete rules for a dependent in IRS Pub. 501
You can find IRS Pub 501 at this link:
https://www.irs.gov/pub/irs-pdf/p501.pdf