Skip to content

Commit

Permalink
chore(linter): updated code to match new black version
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe-Ramet committed Mar 10, 2025
1 parent d712eed commit 026ab23
Show file tree
Hide file tree
Showing 19 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion backend/geonature/core/auth/routes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Module d'identificiation provisoire pour test du CAS INPN
Module d'identificiation provisoire pour test du CAS INPN
"""

import datetime
Expand Down
4 changes: 2 additions & 2 deletions backend/geonature/core/gn_commons/medias/routes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Route permettant de manipuler les fichiers
contenus dans gn_media
Route permettant de manipuler les fichiers
contenus dans gn_media
"""

from flask import request, redirect, jsonify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Modèles du schéma gn_commons
Modèles du schéma gn_commons
"""

from sqlalchemy.dialects.postgresql import JSONB
Expand Down
2 changes: 1 addition & 1 deletion backend/geonature/core/gn_commons/models/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Modèles du schéma gn_commons
Modèles du schéma gn_commons
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion backend/geonature/core/gn_meta/routes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Routes for gn_meta
Routes for gn_meta
"""

import datetime as dt
Expand Down
6 changes: 3 additions & 3 deletions backend/geonature/core/gn_monitoring/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Modèles du schéma gn_monitoring
Correspond a la centralisation des données de base
relatifs aux protocoles de suivis
Modèles du schéma gn_monitoring
Correspond a la centralisation des données de base
relatifs aux protocoles de suivis
"""

from geoalchemy2 import Geometry
Expand Down
2 changes: 1 addition & 1 deletion backend/geonature/core/gn_synthese/utils/process.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
functions to insert update or delete data in table gn_synthese.synthese
functions to insert update or delete data in table gn_synthese.synthese
"""

from sqlalchemy.exc import IntegrityError, ProgrammingError
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""add permissions inherited modules objects
Add rows in `gn_permissions.cor_role_action_filter_module_object` to keep the permissions that were previously
inherited from the module "GEONATURE" and the object "ALL".
Add rows in `gn_permissions.cor_role_action_filter_module_object` to keep the permissions that were previously
inherited from the module "GEONATURE" and the object "ALL".
Necessary with the removal of modules and objects inheritance in the function used to get permissions.
Revision ID: 0630b93bcfe0
Expand Down
12 changes: 6 additions & 6 deletions backend/geonature/utils/command.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""
Fichier de création des commandes geonature
Ce module ne doit en aucun cas faire appel à des models ou au coeur de geonature
dans les imports d'entête de fichier pour garantir un bon fonctionnement des fonctions
d'administration de l'application GeoNature (génération des fichiers de configuration, des
fichiers de routing du frontend etc...). Ces dernières doivent pouvoir fonctionner même si
un paquet PIP du requirement GeoNature n'a pas été bien installé
Fichier de création des commandes geonature
Ce module ne doit en aucun cas faire appel à des models ou au coeur de geonature
dans les imports d'entête de fichier pour garantir un bon fonctionnement des fonctions
d'administration de l'application GeoNature (génération des fichiers de configuration, des
fichiers de routing du frontend etc...). Ces dernières doivent pouvoir fonctionner même si
un paquet PIP du requirement GeoNature n'a pas été bien installé
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion backend/geonature/utils/config_schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Description des options de configuration
Description des options de configuration
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion backend/geonature/utils/env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Helpers to manipulate the execution environment """
"""Helpers to manipulate the execution environment"""

import os
import sys
Expand Down
4 changes: 2 additions & 2 deletions backend/geonature/utils/utilsgeometrytools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Fonctions permettant de manipuler de façon génériques
les fonctions de flask_sqla_geo
Fonctions permettant de manipuler de façon génériques
les fonctions de flask_sqla_geo
"""

from pathlib import Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
Spécification du schéma toml des paramètres de configurations
La classe doit impérativement s'appeller GnModuleSchemaConf
Fichier spécifiant les types des paramètres et leurs valeurs par défaut
Fichier à ne pas modifier. Paramètres surcouchables dans config/config_gn_module.tml
Spécification du schéma toml des paramètres de configurations
La classe doit impérativement s'appeller GnModuleSchemaConf
Fichier spécifiant les types des paramètres et leurs valeurs par défaut
Fichier à ne pas modifier. Paramètres surcouchables dans config/config_gn_module.tml
"""

from marshmallow import Schema, fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Spécification du schéma toml des paramètres de configurations
Spécification du schéma toml des paramètres de configurations
"""

from marshmallow import Schema, fields
Expand Down
6 changes: 3 additions & 3 deletions contrib/occtax/backend/occtax/conf_schema_toml.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Spécification du schéma toml des paramètres de configurations
Fichier spécifiant les types des paramètres et leurs valeurs par défaut
Fichier à ne pas modifier. Paramètres surcouchables dans config/config_gn_module.tml
Spécification du schéma toml des paramètres de configurations
Fichier spécifiant les types des paramètres et leurs valeurs par défaut
Fichier à ne pas modifier. Paramètres surcouchables dans config/config_gn_module.tml
"""

from marshmallow import Schema, fields, post_load
Expand Down
6 changes: 3 additions & 3 deletions data/scripts/import_ginco/import_ca.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Script importing metadata in GeoNature DataBase based on uuid of datasets to import
Use the inpn webservice to get corresponding xml files. Works with datasets and acquisition frameworks, not yet with parents acquisition frameworks (to do)
"""
Script importing metadata in GeoNature DataBase based on uuid of datasets to import
Use the inpn webservice to get corresponding xml files. Works with datasets and acquisition frameworks, not yet with parents acquisition frameworks (to do)
"""

import os
Expand Down
6 changes: 3 additions & 3 deletions data/scripts/import_ginco/import_mtd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Script importing metadata in GeoNature DataBase based on uuid of datasets to import
Use the inpn webservice to get corresponding xml files. Works with datasets and acquisition frameworks, not yet with parents acquisition frameworks (to do)
"""
Script importing metadata in GeoNature DataBase based on uuid of datasets to import
Use the inpn webservice to get corresponding xml files. Works with datasets and acquisition frameworks, not yet with parents acquisition frameworks (to do)
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion data/scripts/import_mtd/import_jdd_and_ca.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
"""
Ce script importe les informations des JDD et des CA à partir du webservice MTD. A la difference du script run_import_mtd, il trouve les CA correspondant aux JDD à partir du XML d'un JDD. Il n'est pas necessaire d'avoir une liste de CA
"""

Expand Down
6 changes: 3 additions & 3 deletions data/scripts/import_mtd/run_import_mtd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Script importing metadata in GeoNature DataBase based on uuid of datasets to import
Use the inpn webservice to get corresponding xml files. Works with datasets and acquisition frameworks, not yet with parents acquisition frameworks (to do)
"""
Script importing metadata in GeoNature DataBase based on uuid of datasets to import
Use the inpn webservice to get corresponding xml files. Works with datasets and acquisition frameworks, not yet with parents acquisition frameworks (to do)
"""

import requests
Expand Down

0 comments on commit 026ab23

Please sign in to comment.