Skip to content

Commit

Permalink
Bring README doctests up-to-date (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelogladding authored Nov 30, 2023
1 parent 553f4b4 commit 99db3de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ Parse a file containing HTML:
>>> mf2json
{'items': [{'type': ['h-entry'],
'properties': {'name': ['Hello'],
'content': [{'html': 'Just saying hi.',
'value': 'Just saying hi.'}]}}],
'content': [{'value': 'Just saying hi.',
'lang': 'en-us',
'html': 'Just saying hi.'}]},
'lang': 'en-us'}],
'rels': {},
'rel-urls': {},
'debug': {'description': 'mf2py - microformats2 parser for python',
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ pytest = "^7.2.1"
black = "^23.3.0"
isort = "^5.12.0"

[tool.pytest.ini_options]
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"

[tool.isort]
profile = "black"

Expand Down
2 changes: 0 additions & 2 deletions pytest.ini

This file was deleted.

0 comments on commit 99db3de

Please sign in to comment.