-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into assistant-feedbacks-22-1
- Loading branch information
Showing
13 changed files
with
222 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
docs/reference/902-utilisation-du-francais-et-de-l-anglais.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Conventions de code - Utilisation des langues françaises et anglaises | ||
|
||
Nous suivons les règles et standards de l'industrie que nous contrôlons à chaque commit et Pull Request grâce à des outils tel que `ruff` ou `eslint`. | ||
|
||
Cependant, ce projet est développé et propulsé par l'État français et doit être utilisable et administrable simplement par le plus grand nombre. Nous appliquons donc une règle spécifique quant à l'utilisation de la langue française versus la langue anglaise, nous avons donc défini les cas d'utilisation de ces 2 langues. | ||
|
||
## En Français | ||
|
||
A l'attention des administrés, administrations, administrateurs, et l'équipe Longue vie aux objets | ||
|
||
- Git/Github Les commits, les Pull Request | ||
- La documentation dans les markdowns | ||
- Les noms et les champs des tables en base de données | ||
|
||
## En Anglais | ||
|
||
Dans le code, à l'attention des équipes techniques | ||
|
||
- les fonctions | ||
- les noms de variables | ||
- les messages d'erreur des exceptions | ||
- les commentaires dans le code | ||
|
||
## Effets de bord acceptés | ||
|
||
Certaines variables combinant un nom d'objet et un suffixe ou préfixe peuvent être en franglais | ||
|
||
Ex : `acteur_by_id` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Generated by Django 5.1.4 on 2025-01-23 10:08 | ||
|
||
from django.db import migrations, models | ||
|
||
import qfdmo.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("qfdmo", "0113_delete_parents_without_children"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="action", | ||
name="code", | ||
field=models.CharField( | ||
max_length=255, | ||
unique=True, | ||
validators=[qfdmo.validators.CodeValidator()], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="actiondirection", | ||
name="code", | ||
field=models.CharField( | ||
max_length=255, | ||
unique=True, | ||
validators=[qfdmo.validators.CodeValidator()], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="groupeaction", | ||
name="code", | ||
field=models.CharField( | ||
max_length=255, | ||
unique=True, | ||
validators=[qfdmo.validators.CodeValidator()], | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="action", | ||
constraint=models.CheckConstraint( | ||
condition=models.Q(("code__regex", "^[0-9a-z_]+$")), | ||
name="action_code_format", | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="actiondirection", | ||
constraint=models.CheckConstraint( | ||
condition=models.Q(("code__regex", "^[0-9a-z_]+$")), | ||
name="action_direction_code_format", | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="groupeaction", | ||
constraint=models.CheckConstraint( | ||
condition=models.Q(("code__regex", "^[0-9a-z_]+$")), | ||
name="groupe_action_code_format", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 5.1.4 on 2025-01-23 10:18 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("qfdmo", "0114_action_models_code"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddConstraint( | ||
model_name="acteurservice", | ||
constraint=models.CheckConstraint( | ||
condition=models.Q(("code__regex", "^[0-9a-z_]+$")), | ||
name="acteur_service_code_format", | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="acteurtype", | ||
constraint=models.CheckConstraint( | ||
condition=models.Q(("code__regex", "^[0-9a-z_]+$")), | ||
name="acteur_type_code_format", | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="source", | ||
constraint=models.CheckConstraint( | ||
condition=models.Q(("code__regex", "^[0-9a-z_]+$")), | ||
name="source_code_format", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.