This project uses poetry
to manage dependencies. For installing poetry, visit the official docs.
For local development, you can install the package in virtual environment via poetry
:
poetry install
poetry shell
We recommend you install the package in a virtual environment.
To build the package with poetry
, use the poetry build
command:
poetry build
This build the package in sdist
and wheel
format in the dist
directory.
geoparser
code is formatted with black
to ensure consistent formatting and to keep diffs as small as possible. Formatting is checked via a GitHub action on every push. Before submitting a pull request, please make sure that your code passes the formatting check.
These resources can provide a good start:
Imports in geoparser
are sorted with isort
to ensure a consistent import order across all files. Import order is check via a GitHub action on every push. Before submitting a pull request, please make sure your code passes the import order check.
These resources can provide a good start:
This project uses pytest
for unit testing. You can run the tests as follows:
poetry run pytest
Before submitting a pull request, make sure all tests pass or that they have been updated for any API changes. When introducing new functionality, make sure to also add tests so that is covered from the beginning.
See the LICENSE file for the project's licensing.