Skip to content

Commit 4819fac

Browse files
committed
✏️(project) automatic typo correction
Fix typos in the project.
1 parent aebb700 commit 4819fac

24 files changed

+44
-44
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ and this project adheres to
557557
- ⚡️(e2e) unique login between tests (#80)
558558
- ⚡️(CI) improve e2e job (#86)
559559
- ♻️(frontend) improve the error and message info ui (#93)
560-
- ✏️(frontend) change all occurences of pad to doc (#99)
560+
- ✏️(frontend) change all occurrences of pad to doc (#99)
561561

562562
## Fixed
563563

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ COPY docker/files/usr/local/etc/gunicorn/impress.py /usr/local/etc/gunicorn/impr
149149
ARG DOCKER_USER
150150
USER ${DOCKER_USER}
151151

152-
# Copy statics
152+
# Copy statistics
153153
COPY --from=link-collector ${IMPRESS_STATIC_ROOT} ${IMPRESS_STATIC_ROOT}
154154

155155
# Copy impress mails

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Security is very important to us.
66

7-
If you have any issue regarding security, please disclose the information responsibly submiting [this form](https://vdp.numerique.gouv.fr/p/Send-a-report?lang=en) and not by creating an issue on the repository. You can also email us at docs@numerique.gouv.fr
7+
If you have any issue regarding security, please disclose the information responsibly submitting [this form](https://vdp.numerique.gouv.fr/p/Send-a-report?lang=en) and not by creating an issue on the repository. You can also email us at docs@numerique.gouv.fr
88

99
We appreciate your effort to make Docs more secure.
1010

docs/env.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ These are the environmental variables you can set for the impress-backend contai
3939
| DJANGO_EMAIL_PORT | port used to connect to email host | |
4040
| DJANGO_EMAIL_USE_TLS | use tls for email host connection | false |
4141
| DJANGO_EMAIL_USE_SSL | use sstl for email host connection | false |
42-
| DJANGO_EMAIL_FROM | email adress used as sender | from@example.com |
42+
| DJANGO_EMAIL_FROM | email address used as sender | from@example.com |
4343
| DJANGO_CORS_ALLOW_ALL_ORIGINS | allow all CORS origins | true |
4444
| DJANGO_CORS_ALLOWED_ORIGINS | list of origins allowed for CORS | [] |
4545
| DJANGO_CORS_ALLOWED_ORIGIN_REGEXES | list of origins allowed for CORS using regulair expressions | [] |
@@ -59,11 +59,11 @@ These are the environmental variables you can set for the impress-backend contai
5959
| OIDC_RP_CLIENT_ID | client id used for OIDC | impress |
6060
| OIDC_RP_CLIENT_SECRET | client secret used for OIDC | |
6161
| OIDC_OP_JWKS_ENDPOINT | JWKS endpoint for OIDC | |
62-
| OIDC_OP_AUTHORIZATION_ENDPOINT | Autorization endpoint for OIDC | |
62+
| OIDC_OP_AUTHORIZATION_ENDPOINT | Authorization endpoint for OIDC | |
6363
| OIDC_OP_TOKEN_ENDPOINT | Token endpoint for OIDC | |
6464
| OIDC_OP_USER_ENDPOINT | User endpoint for OIDC | |
6565
| OIDC_OP_LOGOUT_ENDPOINT | Logout endpoint for OIDC | |
66-
| OIDC_AUTH_REQUEST_EXTRA_PARAMS | OIDC extra auth paramaters | {} |
66+
| OIDC_AUTH_REQUEST_EXTRA_PARAMS | OIDC extra auth parameters | {} |
6767
| OIDC_RP_SCOPES | scopes requested for OIDC | openid email |
6868
| LOGIN_REDIRECT_URL | login redirect url | |
6969
| LOGIN_REDIRECT_URL_FAILURE | login redirect url on failure | |
@@ -73,7 +73,7 @@ These are the environmental variables you can set for the impress-backend contai
7373
| OIDC_REDIRECT_ALLOWED_HOSTS | Allowed hosts for OIDC redirect url | [] |
7474
| OIDC_STORE_ID_TOKEN | Store OIDC token | true |
7575
| OIDC_FALLBACK_TO_EMAIL_FOR_IDENTIFICATION | faillback to email for identification | true |
76-
| OIDC_ALLOW_DUPLICATE_EMAILS | Allow dupplicate emails | false |
76+
| OIDC_ALLOW_DUPLICATE_EMAILS | Allow duplicate emails | false |
7777
| USER_OIDC_ESSENTIAL_CLAIMS | essential claims in OIDC token | [] |
7878
| OIDC_USERINFO_FULLNAME_FIELDS | OIDC token claims to create full name | ["first_name", "last_name"] |
7979
| OIDC_USERINFO_SHORTNAME_FIELD | OIDC token claims to create shortname | first_name |

docs/examples/impress.values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ backend:
8282
python manage.py createsuperuser --email admin@example.com --password admin
8383
restartPolicy: Never
8484

85-
# Exra volume to manage our local custom CA and avoid to set ssl_verify: false
85+
# Extra volume to manage our local custom CA and avoid to set ssl_verify: false
8686
extraVolumeMounts:
8787
- name: certs
8888
mountPath: /usr/local/lib/python3.12/site-packages/certifi/cacert.pem
8989
subPath: cacert.pem
9090

91-
# Exra volume to manage our local custom CA and avoid to set ssl_verify: false
91+
# Extra volume to manage our local custom CA and avoid to set ssl_verify: false
9292
extraVolumes:
9393
- name: certs
9494
configMap:

docs/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ OIDC_RP_SCOPES: "openid email"
133133
134134
You can find these values in **examples/keycloak.values.yaml**
135135
136-
### Find redis server connexion values
136+
### Find redis server connection values
137137
138138
Docs needs a redis so we start by deploying one:
139139
@@ -146,7 +146,7 @@ keycloak-postgresql-0 1/1 Running 0 26m
146146
redis-master-0 1/1 Running 0 35s
147147
```
148148

149-
### Find postgresql connexion values
149+
### Find postgresql connection values
150150

151151
Docs uses a postgresql database as backend, so if you have a provider, obtain the necessary information to use it. If you don't, you can install a postgresql testing environment as follow:
152152

@@ -173,7 +173,7 @@ POSTGRES_USER: dinum
173173
POSTGRES_PASSWORD: pass
174174
```
175175
176-
### Find s3 bucket connexion values
176+
### Find s3 bucket connection values
177177
178178
Docs uses an s3 bucket to store documents, so if you have a provider obtain the necessary information to use it. If you don't, you can install a local minio testing environment as follow:
179179
@@ -191,7 +191,7 @@ redis-master-0 1/1 Running 0 10m
191191

192192
## Deployment
193193

194-
Now you are ready to deploy Docs without AI. AI requires more dependencies (OpenAI API). To deploy Docs you need to provide all previous informations to the helm chart.
194+
Now you are ready to deploy Docs without AI. AI requires more dependencies (OpenAI API). To deploy Docs you need to provide all previous information to the helm chart.
195195

196196
```
197197
$ helm repo add impress https://suitenumerique.github.io/docs/

src/backend/core/api/viewsets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def list(self, request, *args, **kwargs):
576576
queryset, filter_data["is_favorite"]
577577
)
578578

579-
# Apply ordering only now that everyting is filtered and annotated
579+
# Apply ordering only now that everything is filtered and annotated
580580
queryset = filters.OrderingFilter().filter_queryset(
581581
self.request, queryset, self
582582
)
@@ -858,8 +858,8 @@ def tree(self, request, pk, *args, **kwargs):
858858
"""
859859
try:
860860
current_document = self.queryset.only("depth", "path").get(pk=pk)
861-
except models.Document.DoesNotExist as excpt:
862-
raise drf.exceptions.NotFound from excpt
861+
except models.Document.DoesNotExist as except:
862+
raise drf.exceptions.NotFound from except
863863

864864
ancestors = (
865865
(current_document.get_ancestors() | self.queryset.filter(pk=pk))
@@ -889,7 +889,7 @@ def tree(self, request, pk, *args, **kwargs):
889889
)
890890

891891
# Compute cache for ancestors links to avoid many queries while computing
892-
# abilties for his documents in the tree!
892+
# abilities for his documents in the tree!
893893
ancestors_links.append(
894894
{"link_reach": ancestor.link_reach, "link_role": ancestor.link_role}
895895
)

src/backend/core/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,9 @@ def save(self, *args, **kwargs):
544544
response = default_storage.connection.meta.client.head_object(
545545
Bucket=default_storage.bucket_name, Key=file_key
546546
)
547-
except ClientError as excpt:
547+
except ClientError as except:
548548
# If the error is a 404, the object doesn't exist, so we should create it.
549-
if excpt.response["Error"]["Code"] == "404":
549+
if except.response["Error"]["Code"] == "404":
550550
has_changed = True
551551
else:
552552
raise

src/backend/core/services/ai_services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646
AI_TRANSLATE = (
47-
"Keep the same html stucture and formatting. "
47+
"Keep the same html structure and formatting. "
4848
"Translate the content in the html to the specified language {language:s}. "
4949
"Check the translation for accuracy and make any necessary corrections. "
5050
"Do not provide any other information."

src/backend/core/services/collaboration_services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self):
1717
def reset_connections(self, room, user_id=None):
1818
"""
1919
Reset connections of a room in the collaboration server.
20-
Reseting a connection means that the user will be disconnected and will
20+
Resetting a connection means that the user will be disconnected and will
2121
have to reconnect to the collaboration server, with updated rights.
2222
"""
2323
endpoint = "reset-connections"

0 commit comments

Comments
 (0)