mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
whitelist pyosmium for pylint
This commit is contained in:
2
.github/workflows/ci-tests.yml
vendored
2
.github/workflows/ci-tests.yml
vendored
@@ -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 ./
|
||||||
|
|||||||
@@ -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.")
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user