Skip to content

Commit 69d567a

Browse files
Make flake8 happy
1 parent f698186 commit 69d567a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ all:
44
shell:
55
docker-compose run --rm app /bin/bash
66

7-
flake8:
8-
docker-compose run --rm app flake8
9-
107
test:
118
docker-compose run --rm app tox
129

1310
upload:
1411
python setup.py sdist upload
1512

13+
check-flake8:
14+
docker-compose run --rm app flake8
15+
1616
check-black:
1717
docker-compose run --rm app black --check ./static_precompiler
1818

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ DJANGO_SETTINGS_MODULE=static_precompiler.tests.django_settings
44
[flake8]
55
exclude = docs, build, .git, .venv, .tox, static_precompiler/migrations/*
66
max-line-length = 120
7+
ignore = E203,W503
78

89
[isort]

static_precompiler/tests/test_handlebars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def test_compile_file(monkeypatch, tmpdir):
4040
+ container.escapeExpression(((helper = (helper = helpers.title || (depth0 != null ? depth0.title : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0,{"name":"title","hash":{},"data":data}) : helper)))
4141
+ "</h1>\\n";
4242
},"useData":true});
43-
})();"""
44-
) # noqa
43+
})();""" # noqa: E501
44+
)
4545

4646
with pytest.raises(exceptions.StaticCompilationError):
4747
compiler.compile_file("scripts/broken.handlebars")

0 commit comments

Comments
 (0)