Skip to content

Commit

Permalink
More docs and tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Zoppi <texzk@email.it>
  • Loading branch information
TexZK committed Feb 4, 2024
1 parent acf2d4d commit 686617d
Show file tree
Hide file tree
Showing 135 changed files with 58,986 additions and 58,583 deletions.
1 change: 0 additions & 1 deletion docs/_autosummary/hexrec.base.BaseFile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.. autoclass:: BaseFile
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.base.BaseRecord.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.base.BaseRecord
hexrec.base.BaseRecord
======================

.. currentmodule:: hexrec.base

.. autoclass:: BaseRecord
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.base.BaseTag.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.base.BaseTag
hexrec.base.BaseTag
===================

.. currentmodule:: hexrec.base

.. autoclass:: BaseTag
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
1 change: 0 additions & 1 deletion docs/_autosummary/hexrec.formats.asciihex.AsciiHexFile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.. autoclass:: AsciiHexFile
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.asciihex.AsciiHexRecord.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.asciihex.AsciiHexRecord
hexrec.formats.asciihex.AsciiHexRecord
======================================

.. currentmodule:: hexrec.formats.asciihex

.. autoclass:: AsciiHexRecord
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.asciihex.AsciiHexTag.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.asciihex.AsciiHexTag
hexrec.formats.asciihex.AsciiHexTag
===================================

.. currentmodule:: hexrec.formats.asciihex

.. autoclass:: AsciiHexTag
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
1 change: 0 additions & 1 deletion docs/_autosummary/hexrec.formats.ihex.IhexFile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.. autoclass:: IhexFile
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.ihex.IhexRecord.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.ihex.IhexRecord
hexrec.formats.ihex.IhexRecord
==============================

.. currentmodule:: hexrec.formats.ihex

.. autoclass:: IhexRecord
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
1 change: 0 additions & 1 deletion docs/_autosummary/hexrec.formats.ihex.IhexTag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.. autoclass:: IhexTag
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
1 change: 0 additions & 1 deletion docs/_autosummary/hexrec.formats.mos.MosFile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.. autoclass:: MosFile
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.mos.MosRecord.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.mos.MosRecord
hexrec.formats.mos.MosRecord
============================

.. currentmodule:: hexrec.formats.mos

.. autoclass:: MosRecord
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.mos.MosTag.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.mos.MosTag
hexrec.formats.mos.MosTag
=========================

.. currentmodule:: hexrec.formats.mos

.. autoclass:: MosTag
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
1 change: 0 additions & 1 deletion docs/_autosummary/hexrec.formats.raw.RawFile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.. autoclass:: RawFile
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.raw.RawRecord.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.raw.RawRecord
hexrec.formats.raw.RawRecord
============================

.. currentmodule:: hexrec.formats.raw

.. autoclass:: RawRecord
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.raw.RawTag.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.raw.RawTag
hexrec.formats.raw.RawTag
=========================

.. currentmodule:: hexrec.formats.raw

.. autoclass:: RawTag
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
hexrec.formats.srec.SIZE\_TO\_ADDRESS\_FORMAT
=============================================

.. currentmodule:: hexrec.formats.srec

.. autodata:: SIZE_TO_ADDRESS_FORMAT
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.srec.SrecFile.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.srec.SrecFile
hexrec.formats.srec.SrecFile
============================

.. currentmodule:: hexrec.formats.srec

.. autoclass:: SrecFile
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
1 change: 0 additions & 1 deletion docs/_autosummary/hexrec.formats.srec.SrecRecord.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ hexrec.formats.srec.SrecRecord

.. autoclass:: SrecRecord
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
2 changes: 1 addition & 1 deletion docs/_autosummary/hexrec.formats.srec.SrecTag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ hexrec.formats.srec.SrecTag

.. autoclass:: SrecTag
:members:
:inherited-members:
:private-members:
:special-members:

Expand All @@ -18,6 +17,7 @@ hexrec.formats.srec.SrecTag

~SrecTag.fit_count_tag
~SrecTag.fit_data_tag
~SrecTag.fit_start_tag
~SrecTag.get_address_max
~SrecTag.get_address_size
~SrecTag.get_data_max
Expand Down
7 changes: 7 additions & 0 deletions docs/_autosummary/hexrec.formats.srec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@



.. rubric:: Module attributes

.. autosummary::
:toctree:

SIZE_TO_ADDRESS_FORMAT




Expand Down
1 change: 0 additions & 1 deletion docs/_autosummary/hexrec.formats.xtek.XtekFile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.. autoclass:: XtekFile
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.xtek.XtekRecord.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.xtek.XtekRecord
hexrec.formats.xtek.XtekRecord
==============================

.. currentmodule:: hexrec.formats.xtek

.. autoclass:: XtekRecord
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_autosummary/hexrec.formats.xtek.XtekTag.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
hexrec.formats.xtek.XtekTag
hexrec.formats.xtek.XtekTag
===========================

.. currentmodule:: hexrec.formats.xtek

.. autoclass:: XtekTag
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
3 changes: 1 addition & 2 deletions docs/_templates/custom-class-template.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{{ fullname | escape | underline}}
{{ fullname | escape | underline }}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}
:members:
:inherited-members:
:private-members:
:special-members:

Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/custom-module-template.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ fullname | escape | underline}}
{{ fullname | escape | underline }}

.. automodule:: {{ fullname }}

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def read_version():
}

# on_rtd is whether we are on readthedocs.org
#on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

html_theme = 'furo'

Expand Down
3 changes: 2 additions & 1 deletion src/hexrec/formats/asciihex.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def is_data(self) -> bool:


class AsciiHexRecord(BaseRecord):
# TODO: __doc__
r"""ASCII-HEX record object."""

Tag: Type[AsciiHexTag] = AsciiHexTag

Expand Down Expand Up @@ -314,6 +314,7 @@ def validate(


class AsciiHexFile(BaseFile):
r"""ASCII-HEX file object."""

Record: Type[AsciiHexRecord] = AsciiHexRecord

Expand Down
Loading

0 comments on commit 686617d

Please sign in to comment.