Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.53 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.53 KB

Tests & Coverage codecov

Introduction

KNMI-FA is a function app which contains the following functions:

  • GetActualTenMinSynopticData: Queries the KNMI API every 10 minutes to get the latest synoptic data files, list through them and store them locally
  • KNWToSQL: Triggers when KNW CSF files land in a storage account and stores the KNW data in a postgres database. For info on the dataset see the API docs

Dependencies

Create a virtual environment for the project with e.g. pyenv.

pyenv virtualenv knmi-fa
pyenv activate knmi-fa

Afterwards install dependencies with

make install

If you add, remove or update dependencies, make sure setup.py is updated and run

make requirements

to regenerate the requirements file.

Tests

Tests for this project use pytest and can be run with

make test

after installing the requisite dependencies.

Code Style & Strength

This repository uses various methods to maintain a consistent level of code quality. When adding a new feature or upgrading an existing one make sure to check the flake8 and mypy reports with

make lint