Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ Finally, with we retrieve the maintenances (it is a `List` because a notificatio
maintenances = generic_provider.get_maintenances(data_to_process)

print(maintenances[0].to_json())
```

```json
{
"account": "137.035999173",
"circuits": [
Expand Down
2 changes: 2 additions & 0 deletions changes/+deps-2026-10.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Widened the `icalendar`, `chardet`, `timezonefinder`, `python-dateutil` and `pandas` ranges to allow their latest major versions, and refreshed development and documentation dependencies including ruff 0.17, griffe 1.15, invoke 3 and towncrier 26.
Declared `pytz` as a direct dependency, since the library imports it and newer `icalendar` releases no longer install it.
1 change: 1 addition & 0 deletions changes/+deps-2026-10.housekeeping
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Refreshed the lock file to resolve open Dependabot advisories for `certifi`, `idna`, `soupsieve`, `anyio` and `pymdown-extensions`.
9 changes: 4 additions & 5 deletions docs/dev/extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@ import bs4 # type: ignore
from bs4.element import ResultSet # type: ignore
from circuit_maintenance_parser.parser import Html


class HtmlParserABCDE1(Html):
def parse_html(self, soup: ResultSet) -> Dict:
data = {}
self._parse_bs(soup.find_all("b"), data)
self._parse_tables(soup.find_all("table"), data)
return [data]

def _parse_bs(self, btags: ResultSet, data: Dict):
...
def _parse_bs(self, btags: ResultSet, data: Dict): ...

def _parse_tables(self, tables: ResultSet, data: Dict):
...
def _parse_tables(self, tables: ResultSet, data: Dict): ...
```

### Step 2: Update Parser Tests
Expand Down Expand Up @@ -115,7 +114,7 @@ If you were to add loggers or debuggers to one of the classes:
class HtmlParserZayo1(Html):
def parse_bs(self, btags: ResultSet, data: dict):
"""Parse B tag."""
raise Exception('Debugging exception')
raise Exception("Debugging exception")
```

After running `poetry install`:
Expand Down
Loading
Loading