Skip to content

Commit

Permalink
Update pre-commit configuration and add missing __all__ attributes in…
Browse files Browse the repository at this point in the history
… exceptions and mixins
  • Loading branch information
cleder committed Jan 10, 2025
1 parent 8100a1c commit a8bacdf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ repos:
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-toml
Expand Down Expand Up @@ -69,10 +68,6 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char
- repo: https://github.com/rstcheck/rstcheck
rev: "v6.2.4"
hooks:
- id: rstcheck
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: "v1.0.0"
hooks:
Expand All @@ -90,4 +85,8 @@ repos:
rev: dictgen-v0.3.1
hooks:
- id: typos
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.0.1
hooks:
- id: zizmor
...
1 change: 1 addition & 0 deletions examples/read_kml.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
from fastkml import kml

# Setup the string which contains the KML file we want to read
Expand Down
8 changes: 8 additions & 0 deletions fastkml/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""Exceptions for the fastkml package."""

__all__ = [
"FastKMLError",
"GeometryError",
"KMLParseError",
"KMLSchemaError",
"KMLWriteError",
]


class FastKMLError(Exception):
"""Base class for all fastkml exceptions."""
Expand Down
2 changes: 2 additions & 0 deletions fastkml/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
from fastkml.times import TimeSpan
from fastkml.times import TimeStamp

__all__ = ["TimeMixin"]

logger = logging.getLogger(__name__)


Expand Down

0 comments on commit a8bacdf

Please sign in to comment.