Skip to content

Commit 79caa85

Browse files
committed
fix linting
1 parent 5299a75 commit 79caa85

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

django_coverage_plugin/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class DjangoTemplatePlugin(
117117
def __init__(self, options):
118118
extensions = options.get("template_extensions", "html,htm,txt")
119119
self.extensions = [e.strip() for e in extensions.split(",")]
120-
120+
121121
self.exclude_blocks = options.get("exclude_blocks")
122122

123123
self.debug_checked = False
@@ -327,7 +327,7 @@ def lines(self):
327327
# In an inheriting template, ignore all tags outside of
328328
# blocks.
329329
continue
330-
330+
331331
# Ignore any block token content that has been explcitly
332332
# excluded in config
333333
if self.exclude_block_token(token):
@@ -378,6 +378,7 @@ def exclude_block_token(self, token):
378378
if self.exclude_blocks_regex:
379379
return self.exclude_blocks_regex.search(token.contents)
380380

381+
381382
def running_sum(seq):
382383
total = 0
383384
for num in seq:

tests/test_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_exclude_block(self):
287287
[django_coverage_plugin]
288288
exclude_blocks = [".+foo.+"]
289289
""")
290-
290+
291291
text = self.run_django_coverage()
292292
self.assertEqual(text, "First\n\n bar\n\nLast\n")
293293
self.assert_analysis([1, 3, 5])

0 commit comments

Comments
 (0)