From 822c2ed13c4be11dbe0313aa649c9529208e2db7 Mon Sep 17 00:00:00 2001 From: shashank-b Date: Thu, 6 Dec 2018 23:18:30 +0530 Subject: [PATCH] reSTLintBear.py: Change rst_lint version This adds support for Sphinx prolog and epilog and other new features by changing restructuredtext-lint version from '1.0.0' to '1.0' in the files reSTLintBear.py, bear-requirements.txt and bear-requirements.yaml. This is done by ensuring that upgrading to versions '1.1.x' and '1.2.x' is also allowed. Closes https://github.com/coala/coala-bears/issues/1954 --- bear-requirements.txt | 2 +- bear-requirements.yaml | 2 +- bears/rest/reSTLintBear.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bear-requirements.txt b/bear-requirements.txt index 72b241a909..578a2eebd5 100644 --- a/bear-requirements.txt +++ b/bear-requirements.txt @@ -31,7 +31,7 @@ pylint~=1.7.2 pyroma~=2.2.0 pyyaml~=3.12 radon==1.4.0 -restructuredtext-lint~=1.0.0 +restructuredtext-lint~=1.0 rstcheck~=3.1 safety~=1.8.2 scspell3k~=2.0 diff --git a/bear-requirements.yaml b/bear-requirements.yaml index efa31c8e1e..af53071f3b 100644 --- a/bear-requirements.yaml +++ b/bear-requirements.yaml @@ -204,7 +204,7 @@ pip_requirements: radon: version: ==1.4.0 restructuredtext-lint: - version: ~=1.0.0 + version: ~=1.0 rstcheck: version: ~=3.1 safety: diff --git a/bears/rest/reSTLintBear.py b/bears/rest/reSTLintBear.py index e8b1f87fdc..19205c5700 100644 --- a/bears/rest/reSTLintBear.py +++ b/bears/rest/reSTLintBear.py @@ -8,7 +8,7 @@ class reSTLintBear(LocalBear): LANGUAGES = {'reStructuredText'} - REQUIREMENTS = {PipRequirement('restructuredtext-lint', '1.0.0')} + REQUIREMENTS = {PipRequirement('restructuredtext-lint', '~=1.0')} AUTHORS = {'The coala developers'} AUTHORS_EMAILS = {'coala-devel@googlegroups.com'} LICENSE = 'AGPL-3.0'