Skip to content

Commit

Permalink
Merge pull request #220 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 committed Feb 7, 2023
2 parents e74483e + 3305e35 commit a5f27e8
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
hooks:
- id: absolufy-imports
- repo: https://github.com/hakancelikdev/unimport
rev: 33ead41ee30f1d323a9c2fcfd0114297efbbc4d5
rev: 0.14.1
hooks:
- id: unimport
args: [--remove, --include-star-import, --ignore-init, --gitignore]
Expand All @@ -39,7 +39,7 @@ repos:
- id: pyupgrade
args: ["--py3-plus", "--py37-plus"]
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
Expand Down
1 change: 0 additions & 1 deletion examples/UsageExamples.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def print_child_features(element):


if __name__ == "__main__":

fname = "KML_Samples.kml"

k = kml.KML()
Expand Down
1 change: 0 additions & 1 deletion fastkml/kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,6 @@ def features(self) -> Iterator[Union[Folder, Document, Placemark]]:
"""iterate over features"""
for feature in self._features:
if isinstance(feature, (Document, Folder, Placemark, _Overlay)):

yield feature
else:
raise TypeError(
Expand Down
1 change: 0 additions & 1 deletion fastkml/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@


class TimeMixin:

_timespan: Optional[TimeSpan] = None
_timestamp: Optional[TimeStamp] = None

Expand Down
1 change: 0 additions & 1 deletion fastkml/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def etree_element(self) -> Element:
return element

def from_element(self, element: Element) -> None:

super().from_element(element)
color_mode = element.find(f"{self.ns}colorMode")
if color_mode is not None:
Expand Down
1 change: 0 additions & 1 deletion fastkml/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ def roll(self, value) -> None:


class LookAt(_AbstractView):

__name__ = "LookAt"

_range: Optional[float] = None
Expand Down
1 change: 0 additions & 1 deletion tests/styles_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def test_icon_style_read(self) -> None:
assert icons.heading == 20.0

def test_line_style(self) -> None:

lines = styles.LineStyle(
id="id-0",
target_id="target-0",
Expand Down

0 comments on commit a5f27e8

Please sign in to comment.