Skip to content

Commit 1af6ebf

Browse files
committed
lint: black 25
1 parent 4387e8f commit 1af6ebf

File tree

21 files changed

+38
-38
lines changed

21 files changed

+38
-38
lines changed

backend/geonature/core/command/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Entry point for the command line 'geonature'
2+
Entry point for the command line 'geonature'
33
"""
44

55
import logging

backend/geonature/core/gn_commons/medias/routes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Route permettant de manipuler les fichiers
3-
contenus dans gn_media
2+
Route permettant de manipuler les fichiers
3+
contenus dans gn_media
44
"""
55

66
from flask import request, redirect, jsonify

backend/geonature/core/gn_commons/models/additional_fields.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Modèles du schéma gn_commons
2+
Modèles du schéma gn_commons
33
"""
44

55
from sqlalchemy.dialects.postgresql import JSONB

backend/geonature/core/gn_commons/models/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Modèles du schéma gn_commons
2+
Modèles du schéma gn_commons
33
"""
44

55
import os

backend/geonature/core/gn_meta/routes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Routes for gn_meta
2+
Routes for gn_meta
33
"""
44

55
import datetime as dt

backend/geonature/core/gn_monitoring/models.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
Modèles du schéma gn_monitoring
3-
Correspond a la centralisation des données de base
4-
relatifs aux protocoles de suivis
2+
Modèles du schéma gn_monitoring
3+
Correspond a la centralisation des données de base
4+
relatifs aux protocoles de suivis
55
"""
66

77
from geoalchemy2 import Geometry

backend/geonature/core/gn_synthese/utils/process.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
functions to insert update or delete data in table gn_synthese.synthese
2+
functions to insert update or delete data in table gn_synthese.synthese
33
"""
44

55
from sqlalchemy.exc import IntegrityError, ProgrammingError

backend/geonature/core/imports/config_schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Spécification du schéma toml des paramètres de configurations
2+
Spécification du schéma toml des paramètres de configurations
33
"""
44

55
from marshmallow import Schema, fields

backend/geonature/migrations/versions/0630b93bcfe0_add_permissions_inherited_modules_objects.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""add permissions inherited modules objects
22
3-
Add rows in `gn_permissions.cor_role_action_filter_module_object` to keep the permissions that were previously
4-
inherited from the module "GEONATURE" and the object "ALL".
3+
Add rows in `gn_permissions.cor_role_action_filter_module_object` to keep the permissions that were previously
4+
inherited from the module "GEONATURE" and the object "ALL".
55
Necessary with the removal of modules and objects inheritance in the function used to get permissions.
66
77
Revision ID: 0630b93bcfe0

backend/geonature/migrations/versions/a54bafb13ce8_monitoring_create_cor_module_type.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" [monitoring] create_cor_module_type
1+
"""[monitoring] create_cor_module_type
22
33
Revision ID: a54bafb13ce8
44
Revises: ce54ba49ce5c

backend/geonature/migrations/versions/imports/4b137deaf201_create_import_schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""create_import_schema
22
33
Revision ID: 4b137deaf201
4-
Revises:
4+
Revises:
55
Create Date: 2021-03-29 18:38:24.512562
66
77
"""

backend/geonature/migrations/versions/imports/75e78027227d_import_module.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""add import module
22
33
Revision ID: 75e78027227d
4-
Revises:
4+
Revises:
55
Create Date: 2023-12-18
66
77
"""

backend/geonature/utils/command.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""
2-
Fichier de création des commandes geonature
3-
Ce module ne doit en aucun cas faire appel à des models ou au coeur de geonature
4-
dans les imports d'entête de fichier pour garantir un bon fonctionnement des fonctions
5-
d'administration de l'application GeoNature (génération des fichiers de configuration, des
6-
fichiers de routing du frontend etc...). Ces dernières doivent pouvoir fonctionner même si
7-
un paquet PIP du requirement GeoNature n'a pas été bien installé
2+
Fichier de création des commandes geonature
3+
Ce module ne doit en aucun cas faire appel à des models ou au coeur de geonature
4+
dans les imports d'entête de fichier pour garantir un bon fonctionnement des fonctions
5+
d'administration de l'application GeoNature (génération des fichiers de configuration, des
6+
fichiers de routing du frontend etc...). Ces dernières doivent pouvoir fonctionner même si
7+
un paquet PIP du requirement GeoNature n'a pas été bien installé
88
"""
99

1010
import os

backend/geonature/utils/config_schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Description des options de configuration
2+
Description des options de configuration
33
"""
44

55
import os

backend/geonature/utils/env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Helpers to manipulate the execution environment """
1+
"""Helpers to manipulate the execution environment"""
22

33
import os
44
import sys

backend/geonature/utils/utilsgeometrytools.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Fonctions permettant de manipuler de façon génériques
3-
les fonctions de flask_sqla_geo
2+
Fonctions permettant de manipuler de façon génériques
3+
les fonctions de flask_sqla_geo
44
"""
55

66
from pathlib import Path

contrib/gn_module_occhab/backend/gn_module_occhab/conf_schema_toml.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
Spécification du schéma toml des paramètres de configurations
3-
La classe doit impérativement s'appeller GnModuleSchemaConf
4-
Fichier spécifiant les types des paramètres et leurs valeurs par défaut
5-
Fichier à ne pas modifier. Paramètres surcouchables dans config/config_gn_module.tml
2+
Spécification du schéma toml des paramètres de configurations
3+
La classe doit impérativement s'appeller GnModuleSchemaConf
4+
Fichier spécifiant les types des paramètres et leurs valeurs par défaut
5+
Fichier à ne pas modifier. Paramètres surcouchables dans config/config_gn_module.tml
66
"""
77

88
from marshmallow import Schema, fields

contrib/gn_module_validation/backend/gn_module_validation/conf_schema_toml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Spécification du schéma toml des paramètres de configurations
2+
Spécification du schéma toml des paramètres de configurations
33
"""
44

55
from marshmallow import Schema, fields

contrib/occtax/backend/occtax/conf_schema_toml.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
Spécification du schéma toml des paramètres de configurations
3-
Fichier spécifiant les types des paramètres et leurs valeurs par défaut
4-
Fichier à ne pas modifier. Paramètres surcouchables dans config/config_gn_module.tml
2+
Spécification du schéma toml des paramètres de configurations
3+
Fichier spécifiant les types des paramètres et leurs valeurs par défaut
4+
Fichier à ne pas modifier. Paramètres surcouchables dans config/config_gn_module.tml
55
"""
66

77
from marshmallow import Schema, fields, post_load

data/scripts/import_mtd/import_jdd_and_ca.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
"""
22
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
33
"""
44

data/scripts/import_mtd/run_import_mtd.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"""
2-
Script importing metadata in GeoNature DataBase based on uuid of datasets to import
3-
Use the inpn webservice to get corresponding xml files. Works with datasets and acquisition frameworks, not yet with parents acquisition frameworks (to do)
1+
"""
2+
Script importing metadata in GeoNature DataBase based on uuid of datasets to import
3+
Use the inpn webservice to get corresponding xml files. Works with datasets and acquisition frameworks, not yet with parents acquisition frameworks (to do)
44
"""
55

66
import requests

0 commit comments

Comments
 (0)