8000 GitHub - owid/owid-datautils-py at v0.4.4-alpha
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

owid/owid-datautils-py

Repository files navigation

data-utils

version version codecov

data-utils is a library to support the work of the Data Team at Our World in Data.

Install

Currently no release has been published. You can install the version under development directly from GitHub:

pip install git+https://github.com/owid/data-utils-py

Development

Pre-requisites

You need Python 3.8+, poetry and make installed.

# Install poetry
pip install poetry

Install in development mode

poetry install

Test the code

Run:

# run all unit tests and CI checks
make test

Other useful commands

Report

make report

Generate coverage and linting reportings. It is equivalent to running first make report-coverage and then make report-linting. It also launches a local server so you can access the reports via localhost:8000 URL.

The generated reports are saved as ./reports/coverage and ./reports/linting (both HTML directories).

Coverage
make report-coverage

This will print how much of the source code is covered by the implemented tests. Additionally, it generates an HTML directory (.reports/coverage), which provides a frendly view of the source code coverage.

Linting
make report-linting

Check if the source code passes all flake8 styling tests. Additionally, it generages an HTML directory (.reports/linting), which provides a friendly view of the style issues (if any).

Flake8 configuration can be tweaked in .flake8 file.

Versioning

make bump [part]

Upgrade version in all files where it appears. [part] can be patch, minor ad major.

About

Data util library by the Data Team at @owid

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 5

0