-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
language-check changed to language-tool-python
- Loading branch information
1 parent
7d21a59
commit 6de2c62
Showing
12 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
class DocGrammarBear(DocBaseClass, LocalBear): | ||
LANGUAGES = {language for docstyle, language in | ||
DocstyleDefinition.get_available_definitions()} | ||
REQUIREMENTS = {PipRequirement('language-check', '1.0')} | ||
REQUIREMENTS = {PipRequirement('language-tool-python', '1.1')} | ||
AUTHORS = {'The coala developers'} | ||
AUTHORS_EMAILS = {'[email protected]'} | ||
LICENSE = 'AGPL-3.0' | ||
|
@@ -28,12 +28,12 @@ def check_prerequisites(cls): | |
return 'java is not installed.' | ||
else: | ||
try: | ||
from language_check import LanguageTool, correct | ||
from language_tool_python import LanguageTool, correct | ||
LanguageTool | ||
correct | ||
return True | ||
except ImportError: | ||
return 'Please install the `language-check` pip package.' | ||
return 'Please install the `language-tool-python` pip package.' | ||
|
||
def process_documentation(self, | ||
parsed, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
class LanguageToolBear(LocalBear): | ||
LANGUAGES = {'Natural Language'} | ||
REQUIREMENTS = {PipRequirement('guess-language-spirit', '0.5.2'), | ||
PipRequirement('language-check', '1.0')} | ||
PipRequirement('language-tool-python', '1.1')} | ||
AUTHORS = {'The coala developers'} | ||
AUTHORS_EMAILS = {'[email protected]'} | ||
LICENSE = 'AGPL-3.0' | ||
|
@@ -27,12 +27,12 @@ def check_prerequisites(cls): | |
return 'java is not installed.' | ||
else: | ||
try: | ||
from language_check import LanguageTool, correct | ||
from language_tool_python import LanguageTool, correct | ||
LanguageTool | ||
correct | ||
return True | ||
except ImportError: | ||
return 'Please install the `language-check` pip package.' | ||
return 'Please install the `language-tool-python` pip package.' | ||
|
||
@deprecate_settings(natural_language=('language', 'locale')) | ||
def run(self, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
language-check | ||
lxml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters