New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to skip paths (e.g. node_modules) #264
Comments
Yes, sounds like a reasonable to add an exclude option. I think this option should be repeatable (to allow excluding multiple paths). Pull request welcome. |
Implementation note: we currently use the We might want to copy that function in django-codemod and change it to support exclusion. In terms of how it's exposed to the user, we could take the |
Digging through black source code, I realised that it parses |
I just published version 1.1.0 which should now honor the content of |
@browniebroke This should be perfect. Thank you! I'll download and try it out just to make sure. |
Confirmed, it works wonderfully. One thing to note: it only seems to parse the top-level |
Yes that seems about right. It just parsing one from the repo root. Do you have many gitignore? Wondering if we could just document it or if we should try to handle it... |
I think document it and be done. It's a rare pattern that shouldn't really exist outside of using submodules in my opinion. |
Is your feature request related to a problem? Please describe.
I use django-tailwind for CSS in a project. One of the JS libraries it imports has some Python 2 code that it puts inside my
theme/static_src/node_modules/
directory, which is already in my.gitignore
. Because my project is using Python 3.8, the code modder throws syntax errors for those 23 files (which is technically correct).Describe the solution you'd like
I'd like the ability to exclude paths (via a command-line switch or other means) or have the option to have
django-codemod
skip files ignored by git.Additional context
N/A, but this tool is excellent!
The text was updated successfully, but these errors were encountered: