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

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

View File

@ -1,3 +1,5 @@
# black
0856ac758fb7bc97ec089ca8bd1395379028fa66
11fe0141d6981f048bceb8977af8a9eb5bbfe430
# misc: apply double-quote-string-fixer (#79788)
26fda565683aae587125f48aef0157c1cfed6b77

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/asottile/pyupgrade
rev: v3.3.1
hooks:

View File

@ -2,8 +2,8 @@
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "scrutiny.settings")
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'scrutiny.settings')
from django.core.management import execute_from_command_line

View File

@ -8,7 +8,7 @@ https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "scrutiny.settings")
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'scrutiny.settings')
from django.core.wsgi import get_wsgi_application

View File

@ -99,7 +99,7 @@ setup(
license='AGPLv3',
description='',
author="Entr'ouvert",
author_email="info@entrouvert.com",
author_email='info@entrouvert.com',
packages=find_packages(os.path.dirname(__file__) or '.'),
scripts=['manage.py'],
include_package_data=True,