mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
pylint may be available as pylint3 or pylint
This commit is contained in:
@@ -140,6 +140,8 @@ if (BUILD_TESTS)
|
|||||||
|
|
||||||
set(TEST_BDD db osm2pgsql api)
|
set(TEST_BDD db osm2pgsql api)
|
||||||
|
|
||||||
|
find_program(PYLINT NAMES pylint3 pylint)
|
||||||
|
|
||||||
foreach (test ${TEST_BDD})
|
foreach (test ${TEST_BDD})
|
||||||
add_test(NAME bdd_${test}
|
add_test(NAME bdd_${test}
|
||||||
COMMAND behave ${test}
|
COMMAND behave ${test}
|
||||||
@@ -156,9 +158,14 @@ if (BUILD_TESTS)
|
|||||||
COMMAND phpcs --report-width=120 --colors lib website utils
|
COMMAND phpcs --report-width=120 --colors lib website utils
|
||||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
|
||||||
|
|
||||||
add_test(NAME pylint
|
if (PYLINT)
|
||||||
COMMAND pylint3 nominatim
|
message(STATUS "Using '${PYLINT}' for Python linting.")
|
||||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
|
add_test(NAME pylint
|
||||||
|
COMMAND ${PYLINT} nominatim
|
||||||
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
|
||||||
|
else()
|
||||||
|
message(STATUS "pylint not found. Linting tests disabled.")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ To install all necessary packages run:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo apt install php-cgi phpunit php-codesniffer \
|
sudo apt install php-cgi phpunit php-codesniffer \
|
||||||
python3-pip python3-setuptools python3-dev pylint3
|
python3-pip python3-setuptools python3-dev pylint
|
||||||
|
|
||||||
pip3 install --user behave mkdocs
|
pip3 install --user behave mkdocs
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user