diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 8b20b55d..323d36d7 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -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 ./ diff --git a/CMakeLists.txt b/CMakeLists.txt index c6f63a8b..d579bf1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.") diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 552d1da1..6798c39d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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