forked from coala/coala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TestUtilities.py: Add PEP8TestBear, Jinja2TestBear
Add PEP8TestBear and Jinja2TestBear for running the tests on NestedLanguage files
- Loading branch information
1 parent
6cd1bc6
commit 1c0035d
Showing
3 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from coalib.bears.LocalBear import LocalBear | ||
|
||
|
||
class Jinja2TestBear(LocalBear): | ||
LANGUAGES = {'jinja2'} | ||
LICENSE = 'AGPL-3.0' | ||
CAN_FIX = {'Formatting'} | ||
|
||
def run(self, filename, file, config: str = ''): | ||
""" | ||
Bear to test that collecting of languages works. | ||
:param config: An optional dummy config file. | ||
""" |
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,14 @@ | ||
from coalib.bears.LocalBear import LocalBear | ||
|
||
|
||
class PEP8TestBear(LocalBear): | ||
LANGUAGES = {'python'} | ||
LICENSE = 'AGPL-3.0' | ||
CAN_FIX = {'Formatting'} | ||
|
||
def run(self, filename, file, config: str = ''): | ||
""" | ||
Bear to test that collecting of languages works. | ||
:param config: An optional dummy config file. | ||
""" |