Skip to content

Commit c524083

Browse files
pre-commit-ci[bot]ocefpaf
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 93bbe70 commit c524083

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

branca/colormap.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,7 @@ def to_step(
355355
method = (
356356
"quantiles"
357357
if quantiles is not None
358-
else method
359-
if method is not None
360-
else "linear"
358+
else method if method is not None else "linear"
361359
)
362360
if method.lower().startswith("lin"):
363361
if n is None:

branca/utilities.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,19 @@ def _camelify(out):
387387
(
388388
"".join(
389389
[
390-
"_" + x.lower()
391-
if i < len(out) - 1 and x.isupper() and out[i + 1].islower() # noqa
392-
else x.lower() + "_"
393-
if i < len(out) - 1 and x.islower() and out[i + 1].isupper() # noqa
394-
else x.lower()
390+
(
391+
"_" + x.lower()
392+
if i < len(out) - 1
393+
and x.isupper()
394+
and out[i + 1].islower() # noqa
395+
else (
396+
x.lower() + "_"
397+
if i < len(out) - 1
398+
and x.islower()
399+
and out[i + 1].isupper() # noqa
400+
else x.lower()
401+
)
402+
)
395403
for i, x in enumerate(list(out))
396404
],
397405
)

tests/test_colormap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Folium Colormap Module
33
----------------------
44
"""
5+
56
import pytest
67

78
import branca.colormap as cm

tests/test_iframe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Folium Element Module class IFrame
33
----------------------
44
"""
5+
56
import os
67

78
import pytest

0 commit comments

Comments
 (0)