When I edit a file called "openedx_webhooks/tasks/github.py", it doesn't trim trailing whitespace.
This is because editorconfig-vim uses "=~" to decide if a filename matches a file pattern, but "=~" uses regexes, not glob-style patterns as you find in editorconfig files. The pattern ".git/*" should match any file in a directory called ".git", but since it is being interpreted as a regex, it matches any file with "git" in its name.
In my .editorconfig, I have this:
When I edit a file called "openedx_webhooks/tasks/github.py", it doesn't trim trailing whitespace.
This is because editorconfig-vim uses "=~" to decide if a filename matches a file pattern, but "=~" uses regexes, not glob-style patterns as you find in editorconfig files. The pattern ".git/*" should match any file in a directory called ".git", but since it is being interpreted as a regex, it matches any file with "git" in its name.