diff --git a/README.md b/README.md index 8ae82d8b54bffee23b66f8f35cb9a9e11589c603..cd9dbe048a9bd59223bb898bf93fe9ba6ec57b07 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,10 @@ to also output stdout use: Alternatively you can directly call individual test modules. For instance: `python -m pytest -s tests/overpy_series_test.py` + +# Coding Guidelines + +* Use [type hints](https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html) for parameters and return values for each function you implement +* Each module should have basic [unit tests](https://realpython.com/python-testing/) so that we can catch coding errors before we push changes +* Common pittfalls --- for instance wrong EPSG --- should be handled via [warnings](https://docs.python.org/3/library/warnings.html) or exceptions so that errors are not introduced silently +* Whenever we are dealing with coordinates, we try to use [geopandas.GeoSeries](https://geopandas.org/reference/geopandas.GeoSeries.html) so that the projection is handled explicitly \ No newline at end of file