-
Notifications
You must be signed in to change notification settings - Fork 4
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
mini lint #2
Conversation
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.
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. |
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.
CircuitPython library to support Honeywell MPRLS digital pressure sensors.
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.
fixxxxxed! :D
adafruit_mprls.py
Outdated
|
||
self._psimax = psi_max | ||
self._psimin = psi_min | ||
# That's pretty much it, there's no ID register :( |
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.
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. 😄
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.
added!
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.
The suggestion that got left behind..
@sommersoft yay now passing, ready for another look! |
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.
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"] |
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.
Apparently this one got lost on my initial review too. busio
not needed.
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.
thanks, fixed!
adafruit_mprls.py
Outdated
self._eoc.direction = Direction.INPUT | ||
|
||
if psi_min >= psi_max: | ||
raise RuntimeError("Min PSI must be < max!") |
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.
Nit-noid alert: shouldn't this be a ValueError?
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.
good idea, fixed!
amazin' i wrote up a checklist for me so they should be easier going forward |
No description provided.