-
Notifications
You must be signed in to change notification settings - Fork 35
Fixes as suggested by PyLint. Added a target pylint in cmake file. #308
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
91eb392
Fixes as suggested by PyLint. Added a target pylint in cmake file.
f1d1830
Do pylint testing on OSX.
fd7d91c
Fixed import statement.
ad954c8
Fixed pylint errors, removed unneccessary file.
6ec5427
Test of available attributes in moose.
c13cfa1
Install python-libsbml and pyneuroml on OSX before running pylint.
b1f8aa9
Removed temporary attributes from test.
1721393
plot_utils is not so important. It failes when python-tk not found.
69ae359
Fixed boost segfault with dense solver.
2a6b3cb
Merge branch 'pylint_errors' of https://github.com/BhallaLab/moose-co…
879cd6d
Tweak to cmake on OSX. New clang-llvm compiler options added to ignor…
dilawar 17f3db1
None of thest depends on matplotlib anymore.
7fad5fb
Fix travis: Install python-tk and python3-tk on travis.
81fb2a2
Merge branch 'master' into pylint_errors
dilawar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,36 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
| python3 -m pip install pylint --user | ||
| PYLINT="python3 -m pylint -E \ | ||
| --disable=no-member --disable=no-name-in-module \ | ||
| --disable=invalid-unary-operand-type \ | ||
| --disable=import-error \ | ||
| " | ||
| function do_pylint() { | ||
| echo "Checking $1" | ||
| DIR=$(dirname $1) | ||
| SNAME=$(basename $1) | ||
| ( | ||
| cd $DIR | ||
| $PYLINT $@ $SNAME | ||
| ) | ||
| } | ||
|
|
||
| FILES=$(find . -type f -name "*.py" | shuf) | ||
| N=4 | ||
| i=0 | ||
| for f in $FILES; do | ||
| #i=$((i+1)) | ||
| #if [ $i -eq $N ]; then | ||
| # i=0 | ||
| # wait; | ||
| #fi | ||
| # do_pylint "$f" | ||
| echo "Checking $f" | ||
| DIR=$(dirname $f) | ||
| SNAME=$(basename $f) | ||
| ( | ||
| cd $DIR | ||
| $PYLINT $@ $SNAME | ||
| ) | ||
| done |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,8 +1,13 @@ | ||
| # -*- coding: utf-8 -*- | ||
| from __future__ import absolute_import, division, print_function | ||
|
|
||
| # Bring moose.py functions into global namespace. | ||
|
|
||
| # Bring everything from moose.py to global namespace. | ||
| from moose.moose import * | ||
|
|
||
| __version__ = version( ) | ||
| # Bring everything from c++ module to global namespace. Not everything is | ||
| # imported by the pervios import statement. | ||
| from moose._moose import * | ||
|
|
||
| # create a shorthand for version() call here. | ||
| __version__ = version() | ||
|
|
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.