X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e92e03e2e6b892e6dc7a931fe0e70de9315bd302..501e13483efb2799591c425870bb6c646067335f:/docs/develop/Development-Environment.md diff --git a/docs/develop/Development-Environment.md b/docs/develop/Development-Environment.md index 441556ff..2425ec78 100644 --- a/docs/develop/Development-Environment.md +++ b/docs/develop/Development-Environment.md @@ -29,7 +29,7 @@ The Nominatim test suite consists of behavioural tests (using behave) and unit tests (using pytest). It has the following additional requirements: * [behave test framework](https://behave.readthedocs.io) >= 1.2.6 -* [Pylint](https://pylint.org/) (CI always runs the latest version from pip) +* [flake8](https://flake8.pycqa.org/en/stable/) (CI always runs the latest version from pip) * [mypy](http://mypy-lang.org/) (plus typing information for external libs) * [Python Typing Extensions](https://github.com/python/typing_extensions) (for Python < 3.9) * [pytest](https://pytest.org) @@ -55,12 +55,13 @@ the vendored version of osm2pgsql, you need to set the PATH accordingly. ### Installing prerequisites on Ubuntu/Debian The Python tools should always be run with the most recent version. -In particular, pylint tends to have a lot of breaking changes between versions. The easiest way, to handle these Python dependencies is to run your development from within a virtual environment. ```sh -sudo apt install libsqlite3-mod-spatialite +sudo apt install libsqlite3-mod-spatialite osm2pgsql \ + postgresql-postgis postgresql-postgis-scripts \ + pkg-config libicu-dev virtualenv ``` To set up the virtual environment with all necessary packages run: @@ -70,7 +71,7 @@ virtualenv ~/nominatim-dev-venv ~/nominatim-dev-venv/bin/pip install\ psutil psycopg[binary] PyICU SQLAlchemy \ python-dotenv jinja2 pyYAML datrie behave \ - mkdocs mkdocstrings mkdocs-gen-files pytest pytest-asyncio pylint \ + mkdocs mkdocstrings mkdocs-gen-files pytest pytest-asyncio flake8 \ types-jinja2 types-markupsafe types-psutil types-psycopg2 \ types-pygments types-pyyaml types-requests types-ujson \ types-urllib3 typing-extensions unicorn falcon starlette \