Skip to content

Commit

Permalink
Merge pull request #407 from cleder/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
cleder authored Jan 14, 2025
2 parents 29480e2 + d3630c3 commit ba10c38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
hooks:
- id: absolufy-imports
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.8.6'
rev: 'v0.9.1'
hooks:
- id: ruff
- id: ruff-format
Expand Down
3 changes: 1 addition & 2 deletions tests/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ def test_to_string(self) -> None:
obj = kml_base._BaseObject(id="id-0")

assert obj.to_string() == (
'<kml:_BaseObject xmlns:kml="http://www.opengis.net/kml/2.2" '
'id="id-0"/>\n'
'<kml:_BaseObject xmlns:kml="http://www.opengis.net/kml/2.2" id="id-0"/>\n'
)

def test_from_string(self) -> None:
Expand Down
6 changes: 3 additions & 3 deletions tests/kml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ def test_write_kmz_file(self) -> None:
assert "doc.kml" in kmz.namelist(), "doc.kml not found in the KMZ file"
with kmz.open("doc.kml") as doc_kml:
kml_content = doc_kml.read().decode("utf-8")
assert (
kml_content == tree
), "KML content does not match expected content"
assert kml_content == tree, (
"KML content does not match expected content"
)


class TestKmlFromString(StdLibrary):
Expand Down

0 comments on commit ba10c38

Please sign in to comment.