Question: Is it obligatory in Islam to hurt people who do not fast in Ramadan or is it necessary to hurt people, especially women who do not dress accordingly (like wearing shorts and etc.) while we don't even know if she is Muslim or if she is not fasting because she had her period?
There shall be no compulsion in religion and nobody can be forced to do any kind of worship. Also, nobody can be punished since they do not perform the salat, fasting, etc. Please read the following fatwa(s) about compelling people to worship: