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

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

2
.git-blame-ignore-revs Normal file
View File

@ -0,0 +1,2 @@
# misc: apply double-quote-string-fixer (#79788)
d8c76f8ce09609765a90493e14ed58407c5f099c

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.1.0
hooks:

View File

@ -112,7 +112,7 @@ class ResourceView(DetailView):
departement_numbers = extras.get('seisin_by_email_departement_numbers', False)
if departement_numbers:
# without duplicates
departement_numbers = list(dict.fromkeys(departement_numbers.split(",")))
departement_numbers = list(dict.fromkeys(departement_numbers.split(',')))
target_entity = extras.get('seisin_by_email_target_entity', -1)
theme = extras.get('seisin_by_email_theme', '')
userType = extras.get('seisin_by_email_userType', '')

View File

@ -10,7 +10,7 @@ DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'TEST': {
'NAME': 'passerelle-minint-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:63],
'NAME': 'passerelle-minint-test-%s' % os.environ.get('BRANCH_NAME', '').replace('/', '-')[:63],
},
}
}