whitelist pyosmium for pylint

This commit is contained in:
Sarah Hoffmann
2021-01-30 15:52:49 +01:00
parent 4cb6dc01f3
commit 01e0fd7e13
3 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ jobs:
run: phpcs --report-width=120 . run: phpcs --report-width=120 .
- name: Python linting - name: Python linting
run: pylint nominatim run: pylint --extension-pkg-whitelist=osmium nominatim
- name: PHP unit tests - name: PHP unit tests
run: phpunit ./ run: phpunit ./

View File

@@ -191,7 +191,7 @@ if (BUILD_TESTS)
if (PYLINT) if (PYLINT)
message(STATUS "Using pylint binary ${PYLINT}") message(STATUS "Using pylint binary ${PYLINT}")
add_test(NAME pylint add_test(NAME pylint
COMMAND ${PYLINT} nominatim COMMAND ${PYLINT} --extension-pkg-whitelist=osmium nominatim
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}) WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
else() else()
message(WARNING "pylint not found. Python linting tests disabled.") message(WARNING "pylint not found. Python linting tests disabled.")

View File

@@ -53,7 +53,7 @@ The coding style is enforced with PHPCS and pylint. It can be tested with:
``` ```
phpcs --report-width=120 --colors . phpcs --report-width=120 --colors .
pylint3 nominatim pylint3 --extension-pkg-whitelist=osmium nominatim
``` ```
## Testing ## Testing