Mercurial > kallithea
view pytest.ini @ 8689:19d93bd709bf
html: put 'use strict' on separate lines
use.py:
import re
import sys
for fn in sys.argv[1:]:
with open(fn) as f:
s = f.read()
s = re.sub(r'''(<script>)('use strict';)\n( *)''', r'''\1\n\3\2\n\3''', s)
with open(fn, 'w') as f:
f.write(s)
python use.py $(hg loc 'kallithea/templates/**.html')
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 19 May 2020 04:36:53 +0200 |
parents | afa5e0bdb76f |
children |
line wrap: on
line source
[pytest] # only look for tests in kallithea/tests python_files = kallithea/tests/**/test_*.py addopts = # --verbose # show extra test summary info as specified by chars (f)ailed, (E)error, (s)skipped, (x)failed, (X)passed, (w)warnings. -rfEsxXw # Shorter scrollbacks; less stuff to scroll through --tb=short # --doctest-modules --doctest-ignore-import-errors