Meteostat is an open initiative that relies on volunteers who are willing to improve and extend our interfaces and services. New contributions to the library are highly appreciated. Before opening a PR for major additions or changes, please discuss the expected implementation by creating an issue (opens new window).
After cloning the
dev branch you can install the local version of the package using the following command:
sudo -H python3 -m pip install . -U
When making changes to existing classes and methods, please check first if any tests are failing. Also, when adding new methods, please add unit tests for your additions.
# Running Tests
/tests directory, run the following command:
Meteostat uses Pylint (opens new window) for linting. You can lint a file using a simple command:
If you want to format an existing file correctly, you can use autopep8 (opens new window) first:
python3 -m autopep8 --in-place --aggressive meteostat/interface/stations.py