Skip to content

Commit ad1dd1a

Browse files
authored
Merge pull request #671 from ocefpaf/fix_lints
Add flake8 plugins...
2 parents e0ecfcb + 329ee20 commit ad1dd1a

4 files changed

Lines changed: 18 additions & 8 deletions

File tree

folium/plugins/fast_marker_cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
Creates a MarkerCluster plugin to add on a folium map.
77
"""
88

9-
from jinja2 import Template
10-
119
from folium.plugins.marker_cluster import MarkerCluster
1210

11+
from jinja2 import Template
12+
1313

1414
class FastMarkerCluster(MarkerCluster):
1515
"""Add marker clusters to a map using in-browser rendering"""
@@ -52,7 +52,7 @@ def __init__(self, data, callback=None):
5252
'\treturn marker;\n' +
5353
'};')
5454
else:
55-
self._callback = "var callback = {};".format(callback)
55+
self._callback = 'var callback = {};'.format(callback)
5656

5757
self._template = Template(u"""
5858
{% macro script(this, kwargs) %}

folium/plugins/measure_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import json
99

10-
from branca.element import MacroElement, Figure, JavascriptLink, CssLink
10+
from branca.element import CssLink, Figure, JavascriptLink, MacroElement
1111

1212
from jinja2 import Template
1313

folium/plugins/timestamped_wmstilelayer.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
1313
"""
1414

15-
from jinja2 import Template
15+
from branca.element import CssLink, Figure, JavascriptLink
16+
17+
from folium.features import WmsTileLayer
18+
from folium.map import Layer
1619

17-
from branca.element import Figure, JavascriptLink, CssLink
18-
from ..map import Layer
19-
from ..features import WmsTileLayer
20+
from jinja2 import Template
2021

2122

2223
class TimestampedWmsTileLayers(Layer):

requirements-dev.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ jupyter_client
88
mplleaflet
99
nbconvert
1010
pycodestyle
11+
flake8
12+
flake8-builtins
13+
flake8-comprehensions
14+
flake8-import-order
15+
flake8-mutable
16+
flake8-print
17+
flake8-quotes
18+
pandas
19+
pillow
1120
pytest
1221
selenium
1322
vincent

0 commit comments

Comments
 (0)