-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Fix CircleCI pylint, esline and flake8 failed checks #110
Conversation
29f4c07
to
c9a8cbd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shammamah , @VeraZab I addressed almost all the eslint errors, I commented some of my fixes which should be double checked (I looked at the demo app locally and couldn't find differences before and after which should be a good sign)
@@ -26,7 +26,7 @@ export default class Circos extends Component { | |||
* Used to set a click or hover event on tracks/layout that will show annotations for the circos grpah. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Address the improper undefined
usage
var condColor = configApply.color.conditional | ||
configApply.color = d => { | ||
let returnedColor; | ||
for (var i = 0; i < condColor.value.length; i++) { | ||
if (d[condColor.end] - d[condColor.start] > condColor.value[i]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix Expected to return a value at the end of arrow function. (consistent-return)
@@ -192,13 +192,14 @@ export default class Ideogram extends Component { | |||
|
|||
if (this.props.setProps) { | |||
this.tooltipData = document.getElementById('_ideogramTooltip').innerHTML; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
@@ -115,6 +114,7 @@ export default class Speck extends Component { | |||
} | |||
|
|||
// finally apply the user-supplied view parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shammamah : this one I am not sure how to address...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's looking for a length
prop in view
, which doesn't make sense because it's a PropTypes.shape
(i.e., object)... I have to find some way to check how many properties there are.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's looking for a length prop in view, which doesn't make sense because it's a PropTypes.shape (i.e., object)... I have to find some way to check how many properties there are.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shammamah : could you find out the way to check how many properties there are? I created the issue as you asked me on slack -> #114
// add event listeners | ||
const interactionHandler = new speckInteractions(this, renderer, container); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shammamah : this one too I am not sure how to address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I guess this is kind of a weird thing to do. If you look at the code here: https://github.com/shammamah/speck/blob/master/src/interactions.js you'll see that there is a function for the module.exports
that doesn't really return anything; it just performs some actions like attaching event handlers to the mouse, scroll wheel, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shammamah : could you indicate to me which properties on the app this line has an effect on? This would help me check that I haven't break anything :)
Thanks for fixing a lot of these up Pierre. For For In another pr, would you like to give a shot at setting up prettier for this repository? You can take inspiration from the dash-core-components repo as it uses it, and go through the docs of prettier to set it up. |
So for Python, looks like there is no consensus yet on the dash-team, so flake8 and manual fixing still seems to be the way unfortunately. We could still add prettier though, for js formatting. |
@VeraZab @shammamah @mkcor : should we merge this PR (once the last two errors from ESlint are solved, cf #114 ) and open a new one to tackle the next failing checks as now pylinter and flake8 are happy ? |
Yes! Please rename the PR accordingly (something along the lines of "Fix flake8 and pylint errors") and then feel free to ask for review/approval. Thanks for all the clean-up work! |
@shammamah @VeraZab @mkcor : the problem was the |
It's amazing to see the tests pass for Python 3.6!! We will probably want to include other versions of Python 3. Locally, I'm developing in Python 3.7... |
Dash Bio pull request
Addressing the eslint errors for the
.react.js
files described in issue #109 and #114Addressing the pylint and flake8 errors for the
.py
files described in issue #111closes #109 , closes #111
Before asking for a review
PR merging checklist
Please make sure you have done these things before asking for approval to finally merge.
master
: check out the master branch withgit checkout master
, pull the latest changes withgit pull origin master
, check out back to your branch withgit checkout your-branch
, merge (latest) master into your branch withgit merge master
. Resolve conflicts if there are any, and finallygit push origin your-branch
.package-lock.json
(runnpm install
)requirements.txt
is completenpm run build:all
ornpm run build:js
followed bynpm run build:py
python setup.py sdist
, then copydist/dash_bio-X.Y.Z.tar.gz
into the top-level directory)pip install dash-bio-X.Y.Z.tar.gz
)dash_bio/
subfolder by the above command(s)DDS Deployment
developers
user credentials from a dash-bio team member.git pull
).git remote -v
, make sure you have the dash-bio one:https://dash-gallery.plotly.host/GIT/dash-bio
.git remote add dash-bio https://dash-gallery.plotly.host/GIT/dash-bio
.developers
user credentials, have them ready.git push dash-bio master
.DDS Deployment Debugging
git push dash-bio master
you may encounter the following issue:This may be because the
git
credentials are saved on theclient-side
. In order to solve this, do the following:Windows
OS X