Commit 8734ffa0 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Fix flake8 issues

parent 27d9e473
......@@ -68,6 +68,8 @@ def index():
)
base_url = "https://git.opendatafrance.net/scdl/deliberations"
specs_dict = {
"get": {
"summary": "Validate a tabular file from its URL",
......@@ -78,7 +80,7 @@ specs_dict = {
"type": "string",
"format": "url",
"description": "URL of schema to use for validation",
"example": "https://git.opendatafrance.net/scdl/deliberations/raw/master/schema.json",
"example": f"{base_url}/raw/master/schema.json",
"required": True,
},
{
......@@ -87,7 +89,7 @@ specs_dict = {
"type": "string",
"format": "url",
"description": "URL of tabular file to validate",
"example": "https://git.opendatafrance.net/scdl/deliberations/raw/v2.0/examples/Deliberations_ok.csv",
"example": f"{base_url}/raw/v2.0/examples/Deliberations_ok.csv",
"required": True,
},
],
......@@ -102,7 +104,7 @@ specs_dict = {
"type": "string",
"format": "url",
"description": "URL of schema to use for validation",
"example": "https://git.opendatafrance.net/scdl/deliberations/raw/master/schema.json",
"example": f"{base_url}/raw/master/schema.json",
"required": True,
},
{
......@@ -145,7 +147,12 @@ specs_dict = {
{
"code": "compare-columns-value",
"column-number": 11,
"message": "La valeur de la colonne PREF_DATE [2017-02-03] devrait être supérieure ou égale à la valeur de la colonne DELIB_DATE [2017-10-15]",
"message": (
"La valeur de la colonne PREF_DATE"
" [2017-02-03] devrait être supérieure "
"ou égale à la valeur de la colonne"
" DELIB_DATE [2017-10-15]"
),
"message-data": {
"column1": "PREF_DATE",
"column2": "DELIB_DATE",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment