From 94434bceb87bf68779a80cefbdab427e6a2badb4 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 20 Mar 2020 12:16:43 -0400 Subject: [PATCH] Ran black, updated to pylint 2.x --- .github/workflows/build.yml | 2 +- adafruit_clue.py | 87 ++++++++--- docs/conf.py | 138 +++++++++++------- .../clue_ams_remote_advanced.py | 36 +++-- examples/clue_ams_remote.py | 10 +- examples/clue_display_sensor_data.py | 4 +- examples/clue_height_calculator.py | 6 +- setup.py | 70 ++++----- 8 files changed, 221 insertions(+), 132 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fff3aa9..1dad804 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: source actions-ci/install.sh - name: Pip install pylint, black, & Sphinx run: | - pip install --force-reinstall pylint==1.9.2 black==19.10b0 Sphinx sphinx-rtd-theme + pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme - name: Library version run: git describe --dirty --always --tags - name: PyLint diff --git a/adafruit_clue.py b/adafruit_clue.py index 6dc69db..509fc99 100644 --- a/adafruit_clue.py +++ b/adafruit_clue.py @@ -76,17 +76,39 @@ __version__ = "0.0.0-auto.0" __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_CLUE.git" + class _ClueSimpleTextDisplay: """Easily display lines of text on CLUE display.""" - def __init__(self, title=None, title_color=0xFFFFFF, title_scale=1, # pylint: disable=too-many-arguments - text_scale=1, font=None, colors=None): + + def __init__( # pylint: disable=too-many-arguments + self, + title=None, + title_color=0xFFFFFF, + title_scale=1, + text_scale=1, + font=None, + colors=None, + ): + # pylint: disable=import-outside-toplevel import displayio import terminalio from adafruit_display_text import label + # pylint: enable=import-outside-toplevel + if not colors: - colors = (Clue.VIOLET, Clue.GREEN, Clue.RED, Clue.CYAN, Clue.ORANGE, - Clue.BLUE, Clue.MAGENTA, Clue.SKY, Clue.YELLOW, Clue.PURPLE) + colors = ( + Clue.VIOLET, + Clue.GREEN, + Clue.RED, + Clue.CYAN, + Clue.ORANGE, + Clue.BLUE, + Clue.MAGENTA, + Clue.SKY, + Clue.YELLOW, + Clue.PURPLE, + ) self._colors = colors self._label = label @@ -102,8 +124,13 @@ def __init__(self, title=None, title_color=0xFFFFFF, title_scale=1, # pylint: if len(title) > 60: raise ValueError("Title must be 60 characters or less.") - title = label.Label(self._font, text=title, max_glyphs=60, color=title_color, - scale=title_scale) + title = label.Label( + self._font, + text=title, + max_glyphs=60, + color=title_color, + scale=title_scale, + ) title.x = 0 title.y = 8 self._y = title.y + 18 @@ -120,7 +147,9 @@ def __getitem__(self, item): """Fetch the Nth text line Group""" if len(self._lines) - 1 < item: for _ in range(item - (len(self._lines) - 1)): - self._lines.append(self.add_text_line(color=self._colors[item % len(self._colors)])) + self._lines.append( + self.add_text_line(color=self._colors[item % len(self._colors)]) + ) return self._lines[item] def add_text_line(self, color=0xFFFFFF): @@ -141,6 +170,7 @@ def show_terminal(self): """Revert to terminalio screen.""" self._display.show(None) + class Clue: # pylint: disable=too-many-instance-attributes, too-many-public-methods """Represents a single CLUE.""" @@ -195,8 +225,12 @@ def __init__(self): self._red_led.switch_to_output() # Define audio: - self._mic = audiobusio.PDMIn(board.MICROPHONE_CLOCK, board.MICROPHONE_DATA, - sample_rate=16000, bit_depth=16) + self._mic = audiobusio.PDMIn( + board.MICROPHONE_CLOCK, + board.MICROPHONE_DATA, + sample_rate=16000, + bit_depth=16, + ) self._sample = None self._samples = None self._sine_wave = None @@ -352,7 +386,7 @@ def were_pressed(self): """ ret = set() pressed = self._gamepad.get_pressed() - for button, mask in (('A', 0x01), ('B', 0x02)): + for button, mask in (("A", 0x01), ("B", 0x02)): if mask & pressed: ret.add(button) return ret @@ -690,7 +724,7 @@ def _sine_sample(length): tone_volume = (2 ** 15) - 1 shift = 2 ** 15 for i in range(length): - yield int(tone_volume * math.sin(2*math.pi*(i / length)) + shift) + yield int(tone_volume * math.sin(2 * math.pi * (i / length)) + shift) def _generate_sample(self, length=100): if self._sample is not None: @@ -791,8 +825,13 @@ def stop_tone(self): @staticmethod def _normalized_rms(values): mean_values = int(sum(values) / len(values)) - return math.sqrt(sum(float(sample - mean_values) * (sample - mean_values) - for sample in values) / len(values)) + return math.sqrt( + sum( + float(sample - mean_values) * (sample - mean_values) + for sample in values + ) + / len(values) + ) @property def sound_level(self): @@ -812,7 +851,7 @@ def sound_level(self): print(clue.sound_level) """ if self._sample is None: - self._samples = array.array('H', [0] * 160) + self._samples = array.array("H", [0] * 160) self._mic.record(self._samples, len(self._samples)) return self._normalized_rms(self._samples) @@ -859,8 +898,14 @@ def loud_sound(self, sound_threshold=200): return self.sound_level > sound_threshold @staticmethod - def simple_text_display(title=None, title_color=(255, 255, 255), title_scale=1, # pylint: disable=too-many-arguments - text_scale=1, font=None, colors=None): + def simple_text_display( # pylint: disable=too-many-arguments + title=None, + title_color=(255, 255, 255), + title_scale=1, + text_scale=1, + font=None, + colors=None, + ): """Display lines of text on the CLUE display. Lines of text are created in order as shown in the example below. If you skip a number, the line will be shown blank on the display, e.g. if you include ``[0]`` and ``[2]``, the second line on the display will be empty, and @@ -910,8 +955,14 @@ def simple_text_display(title=None, title_color=(255, 255, 255), title_scale=1, clue_data[2].text = "Magnetic: {:.3f} {:.3f} {:.3f}".format(*clue.magnetic) clue_data.show() """ - return _ClueSimpleTextDisplay(title=title, title_color=title_color, title_scale=title_scale, - text_scale=text_scale, font=font, colors=colors) + return _ClueSimpleTextDisplay( + title=title, + title_color=title_color, + title_scale=title_scale, + text_scale=text_scale, + font=font, + colors=colors, + ) clue = Clue() # pylint: disable=invalid-name diff --git a/docs/conf.py b/docs/conf.py index bbd753c..829d531 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,7 +2,8 @@ import os import sys -sys.path.insert(0, os.path.abspath('..')) + +sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ @@ -10,44 +11,67 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.intersphinx', - 'sphinx.ext.napoleon', - 'sphinx.ext.todo', + "sphinx.ext.autodoc", + "sphinx.ext.intersphinx", + "sphinx.ext.napoleon", + "sphinx.ext.todo", ] # TODO: Please Read! # 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 = ["board", "digitalio", "audiobusio", "audiopwmio", "audiocore", "gamepad", - "touchio", "neopixel", "adafruit_apds9960", "adafruit_bmp280", - "adafruit_lis3mdl", "adafruit_lsm6ds", "adafruit_sht31d"] +autodoc_mock_imports = [ + "board", + "digitalio", + "audiobusio", + "audiopwmio", + "audiocore", + "gamepad", + "touchio", + "neopixel", + "adafruit_apds9960", + "adafruit_bmp280", + "adafruit_lis3mdl", + "adafruit_lsm6ds", + "adafruit_sht31d", +] -intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'BusDevice': ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),'Register': ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)} +intersphinx_mapping = { + "python": ("https://docs.python.org/3.4", None), + "BusDevice": ( + "https://circuitpython.readthedocs.io/projects/busdevice/en/latest/", + None, + ), + "Register": ( + "https://circuitpython.readthedocs.io/projects/register/en/latest/", + None, + ), + "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None), +} # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = ["_templates"] -source_suffix = '.rst' +source_suffix = ".rst" # The master toctree document. -master_doc = 'index' +master_doc = "index" # General information about the project. -project = u'Adafruit CLUE Library' -copyright = u'2020 Kattni Rembor' -author = u'Kattni Rembor' +project = u"Adafruit CLUE Library" +copyright = u"2020 Kattni Rembor" +author = u"Kattni Rembor" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = u'1.0' +version = u"1.0" # The full version, including alpha/beta/rc tags. -release = u'1.0' +release = u"1.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -59,7 +83,7 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md'] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".env", "CODE_OF_CONDUCT.md"] # The reST default role (used for this markup: `text`) to use for all # documents. @@ -71,7 +95,7 @@ add_function_parentheses = True # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = "sphinx" # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = False @@ -86,59 +110,62 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' +on_rtd = os.environ.get("READTHEDOCS", None) == "True" if not on_rtd: # only import and set the theme if we're building docs locally try: import sphinx_rtd_theme - html_theme = 'sphinx_rtd_theme' - html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), '.'] + + html_theme = "sphinx_rtd_theme" + html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."] except: - html_theme = 'default' - html_theme_path = ['.'] + html_theme = "default" + html_theme_path = ["."] else: - html_theme_path = ['.'] + html_theme_path = ["."] # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +html_static_path = ["_static"] # The name of an image file (relative to this directory) to use as a favicon of # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. # -html_favicon = '_static/favicon.ico' +html_favicon = "_static/favicon.ico" # Output file base name for HTML help builder. -htmlhelp_basename = 'AdafruitClueLibrarydoc' +htmlhelp_basename = "AdafruitClueLibrarydoc" # -- Options for LaTeX output --------------------------------------------- latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'AdafruitCLUELibrary.tex', u'AdafruitCLUE Library Documentation', - author, 'manual'), + ( + master_doc, + "AdafruitCLUELibrary.tex", + u"AdafruitCLUE Library Documentation", + author, + "manual", + ), ] # -- Options for manual page output --------------------------------------- @@ -146,8 +173,13 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'AdafruitCLUElibrary', u'Adafruit CLUE Library Documentation', - [author], 1) + ( + master_doc, + "AdafruitCLUElibrary", + u"Adafruit CLUE Library Documentation", + [author], + 1, + ) ] # -- Options for Texinfo output ------------------------------------------- @@ -156,7 +188,13 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'AdafruitCLUELibrary', u'Adafruit CLUE Library Documentation', - author, 'AdafruitCLUELibrary', 'One line description of project.', - 'Miscellaneous'), + ( + master_doc, + "AdafruitCLUELibrary", + u"Adafruit CLUE Library Documentation", + author, + "AdafruitCLUELibrary", + "One line description of project.", + "Miscellaneous", + ), ] diff --git a/examples/advanced_examples/clue_ams_remote_advanced.py b/examples/advanced_examples/clue_ams_remote_advanced.py index 31019f3..7004457 100644 --- a/examples/advanced_examples/clue_ams_remote_advanced.py +++ b/examples/advanced_examples/clue_ams_remote_advanced.py @@ -24,7 +24,7 @@ # PyLint can't find BLERadio for some reason so special case it here. -radio = adafruit_ble.BLERadio() # pylint: disable=no-member +radio = adafruit_ble.BLERadio() # pylint: disable=no-member a = SolicitServicesAdvertisement() a.solicited_services.append(AppleMediaService) radio.start_advertising(a) @@ -46,31 +46,31 @@ ams = connection[AppleMediaService] -#arial12 = bitmap_font.load_font("/fonts/Arial-12.bdf") +# arial12 = bitmap_font.load_font("/fonts/Arial-12.bdf") arial16 = bitmap_font.load_font("/fonts/Arial-16.bdf") -#arial24 = bitmap_font.load_font("/fonts/Arial-Bold-24.bdf") +# arial24 = bitmap_font.load_font("/fonts/Arial-Bold-24.bdf") display = board.DISPLAY group = displayio.Group(max_size=25) -title = label.Label(font=arial16, x=15, y=25, text='_', color=0xFFFFFF, max_glyphs=30) +title = label.Label(font=arial16, x=15, y=25, text="_", color=0xFFFFFF, max_glyphs=30) group.append(title) -artist = label.Label(font=arial16, x=15, y=50, text='_', color=0xFFFFFF, max_glyphs=30) +artist = label.Label(font=arial16, x=15, y=50, text="_", color=0xFFFFFF, max_glyphs=30) group.append(artist) -album = label.Label(font=arial16, x=15, y=75, text='_', color=0xFFFFFF, max_glyphs=30) +album = label.Label(font=arial16, x=15, y=75, text="_", color=0xFFFFFF, max_glyphs=30) group.append(album) -player = label.Label(font=arial16, x=15, y=100, text='_', color=0xFFFFFF, max_glyphs=30) +player = label.Label(font=arial16, x=15, y=100, text="_", color=0xFFFFFF, max_glyphs=30) group.append(player) volume = Rect(15, 170, 210, 20, fill=0x0, outline=0xFFFFFF) group.append(volume) track_time = Rect(15, 210, 210, 20, fill=0x0, outline=0xFFFFFF) -#time = label.Label(font=arial16, x=15, y=215, text='Time', color=0xFFFFFF) +# time = label.Label(font=arial16, x=15, y=215, text='Time', color=0xFFFFFF) group.append(track_time) time_inner = Rect(15, 210, 1, 20, fill=0xFFFFFF, outline=0xFFFFFF) @@ -96,19 +96,23 @@ album.text = ams.album player.text = ams.player_name if ams.volume is not None: - width = int(16*13.125*float(ams.volume)) + width = int(16 * 13.125 * float(ams.volume)) if not width: width = 1 if ams.duration and ams.playing: - width1 = int(210*((time.time() - ref_time + ela_time)/float(ams.duration))) + width1 = int( + 210 * ((time.time() - ref_time + ela_time) / float(ams.duration)) + ) if not width1: width1 = 1 elif not ams.duration: width1 = 1 - time_inner = Rect(15, 210, width1, 20, fill=0xFFFFFF)#, outline=0xFFFFFF) + time_inner = Rect(15, 210, width1, 20, fill=0xFFFFFF) # , outline=0xFFFFFF) group[-2] = time_inner - volume_inner = Rect(15, 170, width, 20, fill=0xFFFFFF)#, outline=0xFFFFFF) + volume_inner = Rect( + 15, 170, width, 20, fill=0xFFFFFF + ) # , outline=0xFFFFFF) group[-1] = volume_inner # Capacitive touch pad marked 0 goes to the previous track @@ -127,20 +131,20 @@ time.sleep(0.25) # If button B (on the right) is pressed, it increases the volume - if 'B' in clue.were_pressed: + if "B" in clue.were_pressed: ams.volume_up() a = clue.were_pressed time.sleep(0.35) - while 'B' in clue.were_pressed: + while "B" in clue.were_pressed: ams.volume_up() time.sleep(0.07) # If button A (on the left) is pressed, the volume decreases - if 'A' in clue.were_pressed: + if "A" in clue.were_pressed: ams.volume_down() a = clue.were_pressed time.sleep(0.35) - while 'A' in clue.were_pressed: + while "A" in clue.were_pressed: ams.volume_down() time.sleep(0.07) time.sleep(0.01) diff --git a/examples/clue_ams_remote.py b/examples/clue_ams_remote.py index 45bae99..f4b4b89 100644 --- a/examples/clue_ams_remote.py +++ b/examples/clue_ams_remote.py @@ -15,7 +15,7 @@ from adafruit_clue import clue # PyLint can't find BLERadio for some reason so special case it here. -radio = adafruit_ble.BLERadio() # pylint: disable=no-member +radio = adafruit_ble.BLERadio() # pylint: disable=no-member a = SolicitServicesAdvertisement() a.solicited_services.append(AppleMediaService) radio.start_advertising(a) @@ -59,18 +59,18 @@ time.sleep(0.25) # If button B (on the right) is pressed, it increases the volume - if 'B' in clue.were_pressed: + if "B" in clue.were_pressed: ams.volume_up() time.sleep(0.30) - while 'B' in clue.were_pressed: + while "B" in clue.were_pressed: ams.volume_up() time.sleep(0.07) # If button A (on the left) is pressed, the volume decreases - if 'A' in clue.were_pressed: + if "A" in clue.were_pressed: ams.volume_down() time.sleep(0.30) - while 'A' in clue.were_pressed: + while "A" in clue.were_pressed: ams.volume_down() time.sleep(0.07) diff --git a/examples/clue_display_sensor_data.py b/examples/clue_display_sensor_data.py index 28c9e67..0fca0bb 100644 --- a/examples/clue_display_sensor_data.py +++ b/examples/clue_display_sensor_data.py @@ -5,7 +5,9 @@ clue_data = clue.simple_text_display(title="CLUE Sensor Data!", title_scale=2) while True: - clue_data[0].text = "Acceleration: {:.2f} {:.2f} {:.2f} m/s^2".format(*clue.acceleration) + clue_data[0].text = "Acceleration: {:.2f} {:.2f} {:.2f} m/s^2".format( + *clue.acceleration + ) clue_data[1].text = "Gyro: {:.2f} {:.2f} {:.2f} dps".format(*clue.gyro) clue_data[2].text = "Magnetic: {:.3f} {:.3f} {:.3f} uTesla".format(*clue.magnetic) clue_data[3].text = "Pressure: {:.3f} hPa".format(clue.pressure) diff --git a/examples/clue_height_calculator.py b/examples/clue_height_calculator.py index a8475d2..d35be15 100755 --- a/examples/clue_height_calculator.py +++ b/examples/clue_height_calculator.py @@ -5,8 +5,10 @@ # Set to the sea level pressure in hPa at your location for the most accurate altitude measurement. clue.sea_level_pressure = 1015 -clue_display = clue.simple_text_display(text_scale=2, colors=(clue.CYAN, 0, clue.RED, clue.RED, 0, - clue.YELLOW, 0, clue.GREEN)) +clue_display = clue.simple_text_display( + text_scale=2, + colors=(clue.CYAN, 0, clue.RED, clue.RED, 0, clue.YELLOW, 0, clue.GREEN), +) initial_height = clue.altitude diff --git a/setup.py b/setup.py index b40ba02..375d395 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,7 @@ """ from setuptools import setup, find_packages + # To use a consistent encoding from codecs import open from os import path @@ -13,61 +14,52 @@ here = path.abspath(path.dirname(__file__)) # Get the long description from the README file -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: +with open(path.join(here, "README.rst"), encoding="utf-8") as f: long_description = f.read() setup( - name='adafruit-circuitpython-clue', - + name="adafruit-circuitpython-clue", use_scm_version=True, - setup_requires=['setuptools_scm'], - - description='A high level library representing all the features of the Adafruit CLUE.', + setup_requires=["setuptools_scm"], + description="A high level library representing all the features of the Adafruit CLUE.", long_description=long_description, - long_description_content_type='text/x-rst', - + long_description_content_type="text/x-rst", # The project's main homepage. - url='https://github.com/adafruit/Adafruit_CircuitPython_CLUE', - + url="https://github.com/adafruit/Adafruit_CircuitPython_CLUE", # Author details - author='Adafruit Industries', - author_email='circuitpython@adafruit.com', - + author="Adafruit Industries", + author_email="circuitpython@adafruit.com", install_requires=[ - 'Adafruit-Blinka', - 'adafruit-circuitpython-busdevice', - 'adafruit-circuitpython-register', - 'adafruit-circuitpython-neopixel', - 'adafruit-circuitpython-sht31d', - 'adafruit-circuitpython-lsm6ds', - 'adafruit-circuitpython-lis3mdl', - 'adafruit-circuitpython-display-text', - 'adafruit-circuitpython-bmp280', - 'adafruit-circuitpython-apds9960' + "Adafruit-Blinka", + "adafruit-circuitpython-busdevice", + "adafruit-circuitpython-register", + "adafruit-circuitpython-neopixel", + "adafruit-circuitpython-sht31d", + "adafruit-circuitpython-lsm6ds", + "adafruit-circuitpython-lis3mdl", + "adafruit-circuitpython-display-text", + "adafruit-circuitpython-bmp280", + "adafruit-circuitpython-apds9960", ], - # Choose your license - license='MIT', - + license="MIT", # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ - 'Development Status :: 3 - Alpha', - 'Intended Audience :: Developers', - 'Topic :: Software Development :: Libraries', - 'Topic :: System :: Hardware', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries", + "Topic :: System :: Hardware", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", ], - # What does your project relate to? - keywords='adafruit blinka circuitpython micropython clue sensor humidity temperature ' - 'pressure altitude color proximity gesture light sensors gyro acceleration sound', - + keywords="adafruit blinka circuitpython micropython clue sensor humidity temperature " + "pressure altitude color proximity gesture light sensors gyro acceleration sound", # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). # TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER, # CHANGE `py_modules=['...']` TO `packages=['...']` - py_modules=['adafruit_clue'], + py_modules=["adafruit_clue"], )