forked from joerunde/edx-adapt
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor modules with bad code quality * Remove misc and unused databases modules. * Add markdown lint in codeclimate config, decrease cyclomatic complexity * Remove all usages of the MOE project from the edx-adapt
- Loading branch information
Igor Degtiarov
authored
Mar 1, 2017
1 parent
4837151
commit 7e2d72d
Showing
17 changed files
with
452 additions
and
794 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,43 @@ | ||
# Serves for configuration of CodeClimate (automated code review for test coverage, complexity, duplication, etc.) | ||
engines: | ||
radon: | ||
enabled: true | ||
config: | ||
python_version: 2 | ||
threshold: "C" | ||
exclude_fingerprints: | ||
# It is not needed to fight for cyclomatic complexity decreasing in tools/** scripts | ||
- 986c7c1735f2a2e2a6500e7148ea4bd5 # cyclomatic complexity in course_setup.py | ||
- ec3a2e4e4d53fb59016309bd007df078 # cyclomatic complexity in transform_to_adapt/transform_problems.py | ||
fixme: | ||
enabled: true | ||
config: | ||
strings: | ||
- FIXME | ||
- BUG | ||
- CUSTOM | ||
- TODO | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- javascript: | ||
- python: | ||
python_version: 2 | ||
exclude_fingerprints: | ||
# Probabilities POST and PUT methods are marked as duplication | ||
- 4e06d64888f1f615bfcf51416844dca5 | ||
eslint: | ||
enabled: true | ||
markdownlint: | ||
enabled: true | ||
exclude_fingerprints: | ||
# Long line in Code block marked as long, but length checking is not expected in code blocks | ||
- 7e02053fa411ee2f67df597e15d10148 | ||
|
||
ratings: | ||
paths: | ||
- "**.js" | ||
- "**.py" | ||
- "**.md" | ||
|
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,10 @@ | ||
""" | ||
General Resources for all API resources modules | ||
""" | ||
from flask_restful import Resource | ||
|
||
|
||
class BaseResource(Resource): | ||
def __init__(self, **kwargs): | ||
self.repo = kwargs['data'] # repo: DataInterface | ||
self.selector = kwargs['selector'] # selector: SelectInterface |
Oops, something went wrong.