Skip to content

Commit 5cbc39e

Browse files
committed
fixes for pre-commit and sphinx
1 parent 4a507c1 commit 5cbc39e

File tree

6 files changed

+9
-16
lines changed

6 files changed

+9
-16
lines changed

README.rst

+1-5
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ This is easily achieved by downloading
3636
or individual libraries can be installed using
3737
`circup <https://github.com/adafruit/circup>`_.Installing from PyPI
3838
=====================
39-
.. note:: This library is not available on PyPI yet. Install documentation is included
40-
as a standard element. Stay tuned for PyPI availability!
4139

42-
.. todo:: Remove the above note if PyPI version is/will be available at time of release.
4340

4441
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
4542
PyPI <https://pypi.org/project/adafruit-circuitpython-displayio_annotation/>`_.
@@ -69,8 +66,7 @@ To install in a virtual environment in your current project:
6966
Usage Example
7067
=============
7168

72-
.. todo:: Add a quick, simple example. It and other examples should live in the
73-
examples folder and be included in docs/examples.rst.
69+
See scripts in the examples directory of this repository.
7470

7571
Contributing
7672
============

displayio_annotation.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44
"""
55
6-
`annotation`
6+
`displayio_annotation`
77
================================================================================
88
A widget for annotating other widgets or freeform positions.
99
@@ -21,7 +21,7 @@
2121
2222
"""
2323

24-
# pylint: disable=too-many-arguments, too-many-locals, unused-argument
24+
# pylint: disable=too-many-arguments, too-many-locals, unused-argument, too-few-public-methods
2525

2626
from terminalio import FONT
2727
from adafruit_display_text import bitmap_label
@@ -31,7 +31,7 @@
3131

3232
class Annotation(Widget):
3333
"""A widget to be used to annotate other widgets with text and lines, but can also
34-
be used freeform by using ``(x,y)`` parameter.
34+
be used freeform by using ``(x,y)`` parameter.
3535
3636
:param int x: x-direction pixel position for the end of the annotation line for
3737
freeform positioning, ``(x,y)`` will be ignored if a ``widget`` and ``anchor_point`` and/or
@@ -93,7 +93,7 @@ class Annotation(Widget):
9393
annotations (using ``widget`` and ``anchor_point`` input parameters) and a
9494
freeform annotation (using ``x`` and ``y`` input parameters).
9595
96-
File location: *examples/displayio_layout_annotation_simpletest.py*
96+
File location: *examples/displayio_annotation_simpletest.py*
9797
"""
9898

9999
def __init__(

docs/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
.. use this format as the module name: "adafruit_foo.foo"
66
77
.. automodule:: displayio_annotation
8-
:members:
8+
:members:
99
:member-order: bysource

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Uncomment the below if you use native CircuitPython modules such as
2626
# digitalio, micropython and busio. List the modules you use. Without it, the
2727
# autodoc module docs will fail to generate with a warning.
28-
autodoc_mock_imports = ["terminalio"]
28+
autodoc_mock_imports = ["terminalio", "vectorio", "bitmaptools"]
2929

3030

3131
intersphinx_mapping = {

docs/index.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,11 @@ Table of Contents
2424
.. toctree::
2525
:caption: Tutorials
2626

27-
.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
28-
the toctree above for use later.
27+
DisplayIO Basics <https://learn.adafruit.com/circuitpython-display-support-using-displayio>
2928

3029
.. toctree::
3130
:caption: Related Products
3231

33-
.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
34-
the toctree above for use later.
3532

3633
.. toctree::
3734
:caption: Other Links

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
],
5757
# What does your project relate to?
5858
keywords="adafruit blinka circuitpython micropython displayio_annotation displayio widget "
59-
"graphics",
59+
"graphics",
6060
# You can just specify the packages manually here if your project is
6161
# simple. Or you can use find_packages().
6262
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,

0 commit comments

Comments
 (0)