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

Merged
vdeniaud merged 3 commits from wip/79788-single-quotes into main 2023-08-16 11:59:33 +02:00
5 changed files with 9 additions and 3 deletions

View File

@ -1,2 +1,4 @@
# misc: apply black/isort/pyupgrade (#54260)
72332027586fb99a6dfbc0130cd34987096bd586
# misc: apply double-quote-string-fixer (#79788)
4dceb8508543d6ba48fe766867037fcb5dc4f984

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: 20.8b1
hooks:

View File

@ -49,4 +49,4 @@ def export_as_csv(modeladmin, request, queryset):
return response
export_as_csv.short_description = _("Export CSV file")
export_as_csv.short_description = _('Export CSV file')

View File

@ -116,7 +116,7 @@ setup(
url='http://dev.entrouvert.org/projects/django-journal/',
download_url='http://repos.entrouvert.org/django-journal.git/',
author="Entr'ouvert",
author_email="info@entrouvert.com",
author_email='info@entrouvert.com',
packages=find_packages(os.path.dirname(__file__) or '.'),
include_package_data=True,
cmdclass={

View File

@ -9,7 +9,7 @@ DATABASES = {
'error': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': '_test'},
}
SECRET_KEY = "django_tests_secret_key"
SECRET_KEY = 'django_tests_secret_key'
PASSWORD_HASHERS = ('django.contrib.auth.hashers.MD5PasswordHasher',)
ROOT_URLCONF = 'test_urls'