From 22d8c7c360b2ecacde1a8a9987c10d308bc9509e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:19:59 +0100 Subject: [PATCH] Run ``pre-commit`` --- inputs/Individuals.json | 2 +- inputs/Translations/Functions.json | 8 ++-- python/database_controls/check_sources.py | 48 +++++++++++------------ 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/inputs/Individuals.json b/inputs/Individuals.json index e5fa4b4..de3d3ba 100644 --- a/inputs/Individuals.json +++ b/inputs/Individuals.json @@ -21257,7 +21257,7 @@ ], [ "Generale della Guardia Nazionale di Roma", - "1849-04//1849" + "1849-04/1849-12" ] ], "images": [], diff --git a/inputs/Translations/Functions.json b/inputs/Translations/Functions.json index f4e52a2..50bec0a 100644 --- a/inputs/Translations/Functions.json +++ b/inputs/Translations/Functions.json @@ -2384,6 +2384,10 @@ "en_GB": "President of the Association of Dutch Teachers", "nl_NL": "Voorzitter van het Nederlandsch Onderwijzers Genootschap" }, + "Presidente dell'Ospizio apostolico di S. Michele a Ripa Grande": { + "en_GB": "President of the apostolic hospice of S. Michele a Ripa Grande", + "nl_NL": "President van het pauselijk hospice S. Michele a Ripa Grande" + }, "Presidente della Accademia Pontificia dei Nuovi Lincei": { "en_GB": "President of the _Accademia Pontificia dei Nuovi Lincei_", "nl_NL": "President van de _Accademia Pontificia dei Nuovi Lincei_" @@ -2416,10 +2420,6 @@ "en_GB": "President of the Republic of Venezuela", "nl_NL": "President van de Republiek Venezuela" }, - "Presidente dell'Ospizio apostolico di S. Michele a Ripa Grande": { - "en_GB": "President of the apostolic hospice of S. Michele a Ripa Grande", - "nl_NL": "President van het pauselijk hospice S. Michele a Ripa Grande" - }, "Presidente di Waterschap Schouwen": { "en_GB": "President of Waterschap Schouwen", "nl_NL": "Voorzitter van Waterschap Schouwen" diff --git a/python/database_controls/check_sources.py b/python/database_controls/check_sources.py index 0ea335b..8f04b3b 100644 --- a/python/database_controls/check_sources.py +++ b/python/database_controls/check_sources.py @@ -92,37 +92,37 @@ def check_sources_entry( # pylint: disable=too-many-branches, too-many-argument # Authors elif mat := re.match(r"\$Beth, (.*)", source): - sources[ - index - ] = f"Beth, J.C., De archieven van het Departement van Buitenlandsche Zaken (The Hague, 1918), {mat.groups()[0]}" # pylint: disable=line-too-long + sources[index] = ( + f"Beth, J.C., De archieven van het Departement van Buitenlandsche Zaken (The Hague, 1918), {mat.groups()[0]}" # pylint: disable=line-too-long + ) elif re.match(r"\$Lohrli", source): - sources[ - index - ] = "Lohrli, Anne, 'The Madiai: A Forgotten Chapter of Church History', Victorian Studies 33 (1989), 29–50" # pylint: disable=line-too-long + sources[index] = ( + "Lohrli, Anne, 'The Madiai: A Forgotten Chapter of Church History', Victorian Studies 33 (1989), 29–50" # pylint: disable=line-too-long + ) elif mat := re.match(r"\$Moroni, (\d*), (.*)", source): - sources[ - index - ] = f"Moroni, G., Dizionario di erudizione storico-ecclesiastica da S. Pietro sino ai nostri giorni. Volume {mat.groups()[0]} (Rome, 1840), {mat.groups()[1]}" # pylint: disable=line-too-long + sources[index] = ( + f"Moroni, G., Dizionario di erudizione storico-ecclesiastica da S. Pietro sino ai nostri giorni. Volume {mat.groups()[0]} (Rome, 1840), {mat.groups()[1]}" # pylint: disable=line-too-long + ) elif mat := re.match(r"\$Moscati, (.*)", source): - sources[ - index - ] = f"Moscati, Ruggero, Le scritture della segreteria di Stato degli Affari Esteri del Regno di Sardegna (Rome, 1947), {mat.groups()[0]}" # pylint: disable=line-too-long + sources[index] = ( + f"Moscati, Ruggero, Le scritture della segreteria di Stato degli Affari Esteri del Regno di Sardegna (Rome, 1947), {mat.groups()[0]}" # pylint: disable=line-too-long + ) elif mat := re.match(r"\$Santen, (.*)", source): - sources[ - index - ] = f"van Santen, Cornelis Willem, Het internationale recht in Nederlands buitenlands beleid: een onderzoek in het archief van het Ministerie van Buitenlandse Zaken (The Hague, 1955), {mat.groups()[0]}" # pylint: disable=line-too-long + sources[index] = ( + f"van Santen, Cornelis Willem, Het internationale recht in Nederlands buitenlands beleid: een onderzoek in het archief van het Ministerie van Buitenlandse Zaken (The Hague, 1955), {mat.groups()[0]}" # pylint: disable=line-too-long + ) elif mat := re.match(r"\$Schmidt-Brentano, (.*)", source): - sources[ - index - ] = f"Schmidt-Brentano, Antonio, Die k. k. bzw. k. u. k. Generalität 1816-1918 (Vienna 2007), {mat.groups()[0]}" # pylint: disable=line-too-long + sources[index] = ( + f"Schmidt-Brentano, Antonio, Die k. k. bzw. k. u. k. Generalität 1816-1918 (Vienna 2007), {mat.groups()[0]}" # pylint: disable=line-too-long + ) elif re.match(r"\$Sträter", source): - sources[ - index - ] = "Sträter, F., Herinneringen aan de Eerwaarde Paters Leo, Clemens en Wilhelm Wilde, priesters der Sociëteit van Jezus (Nijmegen, 1911)" # pylint: disable=line-too-long + sources[index] = ( + "Sträter, F., Herinneringen aan de Eerwaarde Paters Leo, Clemens en Wilhelm Wilde, priesters der Sociëteit van Jezus (Nijmegen, 1911)" # pylint: disable=line-too-long + ) elif mat := re.match(r"\$Wels, (.*)", source): - sources[ - index - ] = f"Wels, Cornelis Boudewijn, Bescheiden betreffende de buitenlandse politiek van Nederland, 1848-1919. Volume 1 (The Hague, 1972), {mat.groups()[0]}" # pylint: disable=line-too-long + sources[index] = ( + f"Wels, Cornelis Boudewijn, Bescheiden betreffende de buitenlandse politiek van Nederland, 1848-1919. Volume 1 (The Hague, 1972), {mat.groups()[0]}" # pylint: disable=line-too-long + ) elif match := [i for i in compiled_source_patterns if i.match(source)]: used_patterns.add(match[0])