-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Added spell checker to travis #4917
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
Conversation
@@ -3,12 +3,17 @@ language: python | |||
python: | |||
- "2.7" | |||
|
|||
sudo: false | |||
sudo: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately we need to install enchant
, so no container based builds :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dantleech So we can revert this one, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory .. I will try
It should now be possible to do this in containers as |
@dantleech How long does it take to make that change available on the build systems? |
@xabbuh it should just work. its an undocumented feature at the moment. |
@xabbuh it doesn't seem to work, although the feature is now documented. Asking on IRC. |
Maybe they need some time to deploy the builds infrastructure. Thank you for investigating. |
Doesn't seem to currently work on forked repositories (but does work on organization pull requests, created an issue: |
@dantleech I triggered the Travis build and it seems to pass now given that travis-ci/travis-core#429 (except for the intended spell checker failure). |
Yes indeed, seems fine now. However I guess the version of enchant might be different as there are quite a few more spelling errors. |
What is the progress of this PR, @dantleech ? |
Would need to have a look, maybe at the doc day tomorrow. |
any news on this PR @dantleech |
Will have a look at the next opportunity (some time in the next few days). |
- Use sphinxcontrib-spelling - Requires the enchant library (has to be installed with apt-get)
Have had another look and rebased and made some fixes. I have installed some different spelling backends but the travis installation still seems to be giving 70+ more spelling errors than my local installation. We can add these to the wordlist but before doing further work, is this worth the extra maintenance? Is it likely to be merged? @wouterj @weaverryan |
Personally, I don't think this should be included (or at least, not force a build failure when it fails). It's very usefull, but with all development terms, etc. I think there are too many edge cases to get this correct each time. The last thing I want is people to see a red status on their PRs without them doing anything wrong. |
But this could issue a warning and then the merger also whitelist the unknown word if it was not a spelling mistake. Another solution would be to be able to do that in command line manually from time to time. |
What we can think about is doing this only for our branches, but disable the spellchecker in pull requests. |
But then the maintainers need to fix all the spelling problems which occur and the contributer doesn't know that there is a problem... :( |
After thinking about this proposal, my vote would be 👎 The main reason is that I fear that we'll receive a lot of false positives, so it won't improve much our review process. |
Hi @dantleech! I'm very sorry for the time you put into this, but I'm going to close this pull request. Having a tool that checks for typos is a very great idea and we would like to have such tool in the docs. However, after quite some testing in this PR, I think we have to conclude that this tool doesn't know developer-speech good enough to be very helpfull. I hope to see you back in the future with more great doc ideas! |
No problem! On Tue, Jul 05, 2016 at 03:10:42AM -0700, Wouter J wrote:
|
The list of white-listed words are in
spelling_word_list.txt
.The spell checker ignores (at least)
The whitelist currently contains quite alot of false word.
Next steps:
someMethod
should be escaped)