]> git.openstreetmap.org Git - nominatim.git/commitdiff
whitelist pyosmium for pylint
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 30 Jan 2021 14:52:49 +0000 (15:52 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 30 Jan 2021 14:52:49 +0000 (15:52 +0100)
.github/workflows/ci-tests.yml
CMakeLists.txt
CONTRIBUTING.md

index 8b20b55d7820a42318d111b9b7d26cba0e0660cc..323d36d745e3fe821816f08f212990662eeb4f7c 100644 (file)
@@ -52,7 +52,7 @@ jobs:
               run: phpcs --report-width=120 .
 
             - name: Python linting
-              run: pylint nominatim
+              run: pylint --extension-pkg-whitelist=osmium nominatim
 
             - name: PHP unit tests
               run: phpunit ./
index c6f63a8b4366e146570ad2b34d33e486087886b4..d579bf1add496338a166cb08fa5e9e52592c4681 100644 (file)
@@ -191,7 +191,7 @@ if (BUILD_TESTS)
     if (PYLINT)
         message(STATUS "Using pylint binary ${PYLINT}")
         add_test(NAME pylint
-                 COMMAND ${PYLINT} nominatim
+                 COMMAND ${PYLINT} --extension-pkg-whitelist=osmium nominatim
                  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
     else()
         message(WARNING "pylint not found. Python linting tests disabled.")
index 552d1da1d285d0676509e385d982e3f1802574b5..6798c39dc1fcde20525204cd2af4abbc2e392e2a 100644 (file)
@@ -53,7 +53,7 @@ The coding style is enforced with PHPCS and pylint. It can be tested with:
 
 ```
 phpcs --report-width=120 --colors .
-pylint3 nominatim
+pylint3 --extension-pkg-whitelist=osmium nominatim
 ```
 
 ## Testing