Skip to content

Added pylint ignores so Actions will pass #51

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 4 commits into from
Jan 12, 2020
Merged

Conversation

evaherrada
Copy link
Collaborator

@evaherrada evaherrada commented Jan 10, 2020

There were 2 things I wasn't quite sure about:

line 86 of adafruit_ble/advertising/__init__.py
I added a pass to it because It wouldn't pass pylint completely empty even with an ignore. I don't think this should have an effect on the operation of the module, but I just wanted to check.

Edit: So I'm realizing that adding a pass causes travis to fail, but in testing it locally using the linting command from build.yml, that was the only way it would pass

line 252 of adafruit_ble/services/hid.py
It didn't have a docstring so I added one. Just wanted to see if there was a better way of describing that function than what I put

@evaherrada evaherrada requested a review from siddacious January 10, 2020 02:59
Copy link
Contributor

@siddacious siddacious left a comment

Choose a reason for hiding this comment

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

I forgot to clarify that this PR will also need to remove the ignores from the pylint invocation in .travis.yml. Technically it doesn't need them to be removed, but the main point of this PR is to not need the ignores that are being added to the pylint invocation because they won't be there when actions is doing the linting. There's no reason to leave them in .travis.yml once they've been added to the code, and removing them now will make it clear that you've added all of the required new ones.

Please remove the ignores from the travis.yml and then see where the linting is at

@@ -248,6 +249,7 @@ def _init_devices(self):
i += size

def get_report_info(collection, reports):
""" Gets info about hid reports """
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like an accurate if brief description. It can be filled out more if need be.

@evaherrada evaherrada requested a review from siddacious January 12, 2020 01:41
@siddacious
Copy link
Contributor

siddacious commented Jan 12, 2020

@dherrada have you been able to put any time into this? I'd like to try and get it merged soon

edit:whoops! I missed your commits; looking now

@siddacious siddacious merged commit 5a3f156 into master Jan 12, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 14, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE to 4.0.0 from 3.1.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#53 from dherrada/master
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#49 from adafruit/dherrada-patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#51 from adafruit/dherrada-patch-2
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#33 from ntoll/master
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#48 from tannewt/remove_magic_light
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#47 from tannewt/remove_ancs

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_BLE
@dhalbert dhalbert deleted the dherrada-patch-2 branch January 27, 2020 22:39
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