-
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.
Only test non-Python bears on Python 3.6
- Loading branch information
Showing
8 changed files
with
61 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Delete empty bear directories | ||
|
||
for dir in bears/*/; do | ||
if [[ -z "$(ls $dir/ 2>/dev/null | egrep -v '(__|.xml)')" ]]; then | ||
rm -rf $dir | ||
fi | ||
done |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Delete tests for bears that have been removed | ||
set -e | ||
|
||
for test in tests/*/[A-Za-z]*.py; do | ||
bear=${test/Test.py/.py} | ||
bear=${bear/tests/bears} | ||
if [[ ! -f $bear ]]; then | ||
echo Removing $test | ||
rm $test | ||
fi | ||
done |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import json | ||
|
||
import yaml | ||
|
||
from coalib.bearlib import deprecate_settings | ||
from coalib.bearlib.abstractions.Linter import linter | ||
from dependency_management.requirements.GemRequirement import GemRequirement | ||
from dependency_management.requirements.PipRequirement import PipRequirement | ||
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY | ||
from coalib.results.Result import Result | ||
|
||
|
@@ -19,8 +19,7 @@ class RuboCopBear: | |
""" | ||
|
||
LANGUAGES = {'Ruby'} | ||
REQUIREMENTS = {GemRequirement('rubocop'), | ||
PipRequirement('pyyaml', '3.12')} | ||
REQUIREMENTS = {GemRequirement('rubocop')} | ||
AUTHORS = {'The coala developers'} | ||
AUTHORS_EMAILS = {'[email protected]'} | ||
LICENSE = 'AGPL-3.0' | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
from coalib.bearlib.abstractions.Linter import linter | ||
from dependency_management.requirements.GemRequirement import GemRequirement | ||
from dependency_management.requirements.PipRequirement import PipRequirement | ||
|
||
|
||
@linter(executable='scss-lint', output_format='regex', | ||
|
@@ -18,8 +17,7 @@ class SCSSLintBear: | |
LANGUAGES = {'SCSS'} | ||
# require flag is necessary for 'scss_lint' | ||
# https://github.com/brigade/scss-lint#installation | ||
REQUIREMENTS = {GemRequirement('scss_lint', '', 'false'), | ||
PipRequirement('pyyaml', '3.12')} | ||
REQUIREMENTS = {GemRequirement('scss_lint', '', 'false')} | ||
AUTHORS = {'The coala developers'} | ||
AUTHORS_EMAILS = {'[email protected]'} | ||
LICENSE = 'AGPL-3.0' | ||
|
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