Skip to main content

No project description provided

Project description

jrpytests

Overview

This package contains functions for CI testing of JR python packages and was created using the poetry python package, for more details see

https://github.com/sdispater/poetry.

jrpytests allows:

  • to run pytest,
  • to check coding style (via flake8) in python files,
  • to extract python chunks from Rmd files and check their coding style,
  • to check if a directory 'vignettes' exists in appropriate folder and,
  • to count pdf files in 'vignettes' and compare to number of Rmd files.

The flake8 configuration file is stored in this package, see

jrpytests/flake8_config.ini.

Basic usage

Import the package using

import jrpytests.

Run pytest

jrpytests.runpytests().

Run flake8 in python files

jrpytests.runflake8pythonfiles().

Run flake8 in Rmd python chunks

jrpytests.runflake8rmdpychunks().

Check 'vignettes' and number of pdf files in it

jrpytests.checkvignettespdffiles().

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jrpytests, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size jrpytests-0.1.4-py3-none-any.whl (6.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size jrpytests-0.1.4.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page