DOC: Ensure basic flake8 diff checks only Python
Let's make sure all of the `flake8` commands in our documentation check only Python files (will be applicable to majority of contributions and PR's).

Follow-up to #15749
thanks!