-
Notifications
You must be signed in to change notification settings - Fork 178
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
Proselint doesn't work on readonly files #502
Comments
Thanks. We don't intend for Proselint to modify files. At some point, perhaps, it would interesting to create an |
Hm. What version of Proselint are you looking at? On master, the line you specified already uses https://github.com/amperser/proselint/blob/master/proselint/command_line.py#L115 It seems this improvement was made by @Tatsh in commit a52c908. |
I found it on 0.5.3, the version that is currently being shipped in Debian. I will happily drop the patch for the next shipped version :) Seems like we can consider this fixed, let me close the issue. |
@viccuad I've released Proselint 0.6.0, which includes this change. |
On command_line.py:192
We are opening files to be linted with 'r+', which opens the file for both reading and writing (instead of 'r' which opens as read only).
This may not be needed, and breaks
proselint
for some files such asdemo.md
(therefore it breaksproselint --demo
) when installed with a distribution package manager.I've discovered this because of the Debian proselint package I mantain has that
demo.md
, and I have resorted on patching it temporarily to make it open files as readonly. Please, notify me if proselint intends to modify files in the future, and we need to find another solution.The text was updated successfully, but these errors were encountered: