Mercurial > kallithea
view tox.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 | ab30729c735c |
children |
line wrap: on
line source
[tox] minversion = 1.8 envlist = py27-pytest [testenv] setenv = PYTHONHASHSEED = 0 deps = -r{toxinidir}/dev_requirements.txt python-ldap python-pam commands = pytest: py.test {posargs}