From: Sarah Hoffmann Date: Sat, 30 Jan 2021 14:52:49 +0000 (+0100) Subject: whitelist pyosmium for pylint X-Git-Tag: v3.7.0~46^2~5 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/01e0fd7e134bedf1b791b18725531b7a5e21e432 whitelist pyosmium for pylint --- 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