-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bears.py: Ask users for capabilities
Adds functionality for users to provide their preferences for bears capabilities to use instead of the `DEFAULT_CAPABILITIES` to filter bears by capabilties. Also adds a command line argument --no-filter-by-capabilties to disable filtering of bears by capapbilities. Related to #131
- Loading branch information
1 parent
88f6996
commit 02369a9
Showing
5 changed files
with
177 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from coalib.bears.LocalBear import LocalBear | ||
|
||
|
||
class SmellCapabilityBear(LocalBear): | ||
CAN_FIX = {"Smell"} | ||
LANGUAGES = {"All"} | ||
|
||
def run(self, filename, file): | ||
pass |