If you're using pycharm. There's a big chance that you opened the file, you worked on it, but you opened it in a different project. Therefore no changes will be detected.
You need to open the file in its corresponding project in order to be detected.
I do this. All. The. Time.