Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trailing space from pyflakes project #637

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions _projects/integrate-pyflakes-AST.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ mentors:
- jayvdb
- myint
- adhikasp
name: "Integrate pyflakes-enhanced AST into coala "
name: "Integrate pyflakes-enhanced AST into coala"
requirements:
- "The participant has a patch to any bear merged. Check out
- "The participant has a patch to any bear merged. Check out
[existing bear proposal](https://github.com/coala/coala-bears/issues)."
- "The participant has a patch to pyflakes merged. Check out
- "The participant has a patch to pyflakes merged. Check out
[easy task](https://bugs.launchpad.net/pyflakes/+bugs?field.tag=easy)."
status: completed
tags:
- Bears
- Pyflakes
---
flake8 has many plugins which are commonly used in the python development
community. flake8 is a wrapper, similar to coala, that provides the
community. flake8 is a wrapper, similar to coala, that provides the
AST to its plugins. Instead of coala using the flake8
wrapper, which adds another level of complexity and uncertainty with regards
to configuration, coala would like to directly load the python-enhanced AST
Expand All @@ -39,7 +39,7 @@ This project focuses on integrating the
[AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) into coala and
redesign flake8 plugins
[`flake8-future-import`](https://github.com/xZise/flake8-future-import) and
[`flake8-builtins`](https://github.com/gforcada/flake8-builtins) so that they
[`flake8-builtins`](https://github.com/gforcada/flake8-builtins) so that they
use pyflakes-enhanced AST.
A seperate wrapper is also needed to be designed so that the pre-existing
plugins can work without any modification.
Expand Down
8 changes: 8 additions & 0 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'code' : 'ro'
}];
selected_language = JSON.parse(window.localStorage.getItem('lang')) || langs[0];

return {
setData: function (val) {
angular.forEach(langs, function(v, k){
Expand Down Expand Up @@ -253,6 +254,10 @@
}

$scope.projectRequest = function () {

var redirectTo = {
"integrate_pyflakes-enhanced_ast_into_coala_" : "integrate_pyflakes-enhanced_ast_into_coala"
};
$scope.projects_url_dict = {}
$scope.projects_url_list = Object.keys($scope.projects_url_dict);
angular.forEach($scope.projectList, function(value, key){
Expand All @@ -262,6 +267,9 @@

var project_requested = encodeURIComponent($location.search().project);
if(project_requested){
if(project_requested in redirectTo){
project_requested = redirectTo[project_requested]
}
if(Object.keys($scope.projects_url_dict).indexOf(project_requested) > -1){
self.showProject($scope.projectList[$scope.projects_url_dict[project_requested]])
}
Expand Down