-
Notifications
You must be signed in to change notification settings - Fork 56
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
Handling untracked files #85
Comments
Hi @casio, thanks for your well-written issue! The error message git show HEAD:./new.py If you run It would probably be a good idea for Darker to look at Git output, and detect and suppress this particular message since it is in fact expected. Or what do you think? By the way, there's also a somewhat related pull request #55 which fixes Darker when linter output refers to files which don't currently exist on disk. As a side note, we have multiple pull requests which could use a review. Since current contributors are really busy, we'd appreciate help reviewing the PRs. Let me know if you're willing to join us! |
Using
darker
on a repo with as of yet untracked files raises eg.:fatal: path 'new.py' exists on disk, but not in 'HEAD'
Steps to reproduce
I guess this might be known and intended behavior, but it would be super useful if in a legacy codebase we could just use the same formatting/linting command also for new files added.
Are there any plans to support this usecase?
The text was updated successfully, but these errors were encountered: