ajouter le hook double-quote-string-fixer (#79788) #364

Merged
vdeniaud merged 3 commits from wip/79788-single-quotes into main 2023-08-16 11:57:01 +02:00
4 changed files with 8 additions and 2 deletions

View File

@ -4,3 +4,5 @@
0f75316e1b9a70e311d2971e75b32f84b00f487a
# misc: apply djhtml (#69422)
26c238261585ce358808b562e10b39c67cfe7f3e
# misc: apply double-quote-string-fixer (#79788)
3fe0ee2cbb44a590cb27f7a40c7baedb3760140f

View File

@ -1,6 +1,10 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: double-quote-string-fixer
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:

View File

@ -20,7 +20,7 @@ inkscape = subprocess.Popen(
)
for line in inkscape.stdout:
if "dbus_" in line and ": assertion 'connection != NULL' failed" in line:
if 'dbus_' in line and ": assertion 'connection != NULL' failed" in line:
continue
sys.stdout.write(line)

View File

@ -64,7 +64,7 @@ root = etree.fromstring(header_content, parser=html_parser)
for link in root.xpath('//li[@class="compte"]'):
for child in link:
link.remove(child)
link.text = "{% block user-info %}{% endblock %}"
link.text = '{% block user-info %}{% endblock %}'
header_content = etree.tostring(root, method='html').decode()