Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mini lint #2

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 11 commits into from
Sep 9, 2018
Merged

mini lint #2

merged 11 commits into from
Sep 9, 2018

Conversation

ladyada
Copy link
Member

@ladyada ladyada commented Sep 8, 2018

No description provided.

Copy link
Collaborator

@sommersoft sommersoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear Honeywell, a device ID would have been soooo helpful! hehe.

Not sure why Travis failed on Bus Device. Could just be a rando occurrence...

Arrrggghhh! Of course I forget to click "Add review comment" to the long suggestion... 🤦‍♂️ Another one inbound.

README.rst Outdated
@@ -13,7 +13,7 @@ Introduction
:target: https://travis-ci.org/adafruit/Adafruit_CircuitPython_MPRLS
:alt: Build Status

.. todo:: Describe what the library does.
CircuitPython library to support VEML6075 UVA & UVB sensor.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CircuitPython library to support Honeywell MPRLS digital pressure sensors.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixxxxxed! :D


self._psimax = psi_max
self._psimin = psi_min
# That's pretty much it, there's no ID register :(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The no ID register is a super bummer. I hesitate to recommend conditionals for the psi_max, since it varies by sensor. And there are too many models to sub-class it out..

I would check that psi_min < psi_max though...accidental argument assignments will throw some interesting math at the user. 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added!

Copy link
Collaborator

@sommersoft sommersoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suggestion that got left behind..

@ladyada
Copy link
Member Author

ladyada commented Sep 9, 2018

@sommersoft yay now passing, ready for another look!

Copy link
Collaborator

@sommersoft sommersoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find on .travis.yml! I checked requirements.txt, and then forgot to look at the yaml.

Couple more tiny things...

docs/conf.py Outdated
@@ -20,7 +20,7 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
# autodoc_mock_imports = ["digitalio", "busio"]
autodoc_mock_imports = ["digitalio", "busio", "micropython"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently this one got lost on my initial review too. busio not needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, fixed!

self._eoc.direction = Direction.INPUT

if psi_min >= psi_max:
raise RuntimeError("Min PSI must be < max!")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit-noid alert: shouldn't this be a ValueError?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, fixed!

@sommersoft sommersoft merged commit e7543ae into adafruit:master Sep 9, 2018
@ladyada
Copy link
Member Author

ladyada commented Sep 9, 2018

amazin' i wrote up a checklist for me so they should be easier going forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants