Kian-Meng Ang
|
f5e52e748f
|
docs: fix typos
|
2022-07-20 22:05:31 +08:00 |
|
Sarah Hoffmann
|
83054af46f
|
remove typing_extensions requirement
The typing_extensions package is only necessary now when running mypy.
It won't be used at runtime anymore.
|
2022-07-18 09:55:58 +02:00 |
|
Sarah Hoffmann
|
9963261d8d
|
add type annotations to special phrase importer
|
2022-07-18 09:54:29 +02:00 |
|
Sarah Hoffmann
|
9b636fdc10
|
mypy: minimal annotations to enable a clean run
|
2022-07-18 09:47:57 +02:00 |
|
Sarah Hoffmann
|
cce0e5ea38
|
convert special phrase loaders to generators
Generators simplify the code quite a bit compared to the previous
Iterator approach.
|
2022-05-30 14:12:46 +02:00 |
|
Sarah Hoffmann
|
3ba975466c
|
fix spacing
Some versions of pylint are oddly picky.
|
2022-05-11 10:36:09 +02:00 |
|
Sarah Hoffmann
|
bb2bd76f91
|
pylint: avoid explicit use of format() function
Use psycopg2 SQL formatters for SQL and formatted string literals
everywhere else.
|
2022-05-11 09:48:56 +02:00 |
|
Sarah Hoffmann
|
c3788d765e
|
add consistent SPDX copyright headers
|
2022-01-03 16:23:58 +01:00 |
|
Sarah Hoffmann
|
c77df2d1eb
|
replace NOMINATIM_PHRASE_CONFIG with command line option
|
2021-10-22 14:41:14 +02:00 |
|
Sarah Hoffmann
|
06602b4ec0
|
provide wrapper function for DROP TABLE
Use psycopg2 formatting to ensure correct quoting.
|
2021-07-12 20:32:46 +02:00 |
|
Sarah Hoffmann
|
cf98cff2a1
|
more formatting fixes
Found by flake8.
|
2021-07-12 17:45:42 +02:00 |
|
Sarah Hoffmann
|
d5a1883b62
|
avoid repeated patterns for table name
|
2021-07-12 11:33:09 +02:00 |
|
Sarah Hoffmann
|
3661f7a321
|
avoid multiple returns of same value
Found by Sonarqube.
|
2021-07-11 18:23:42 +02:00 |
|
AntoJvlt
|
799a4c9ab6
|
Documentation update and small code fixes
|
2021-05-18 22:35:21 +02:00 |
|
AntoJvlt
|
8b8dfc46eb
|
Added --no-replace command for special phrases importation and added corresponding tests
|
2021-05-17 13:25:06 +02:00 |
|
AntoJvlt
|
06aab389ed
|
Code cleaning and SPLoader deleted
|
2021-05-16 16:59:12 +02:00 |
|
AntoJvlt
|
00959fac57
|
Refactoring loading of external special phrases and importation process by introducing SPLoader and SPWikiLoader
|
2021-05-10 21:49:31 +02:00 |
|