Layer Linter currently doesn't import modules that contain the word 'migrations', in order to avoid importing Django migrations.
It would be better if this could be configurable on a project-by-project basis. Also excluding 'node_modules' might be a sensible default, as Python files are sometimes included there.