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.

Source Distribution

jrpytests-0.1.6.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

jrpytests-0.1.6-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file jrpytests-0.1.6.tar.gz.

File metadata

  • Download URL: jrpytests-0.1.6.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.154+

File hashes

Hashes for jrpytests-0.1.6.tar.gz
Algorithm Hash digest
SHA256 5dd4964a7e90e3ed18550cdf2b8fae02756f88cec5b70ca2ce88127efa257731
MD5 fd607dc473f9bfc783ebcc89d34770ca
BLAKE2b-256 92283df5da341914859b37f8e1e5c1f1756ba80e6c4294cae594ac5445f8eb0c

See more details on using hashes here.

File details

Details for the file jrpytests-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: jrpytests-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.154+

File hashes

Hashes for jrpytests-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b4a6a777af96986cb9f3b894deb4dbc6c9e49bfc87786d89e770b8d06b0eb36a
MD5 d0b35b5005f494118554b80b5cb68791
BLAKE2b-256 88a2344f4ef314beea66e6a5d0a50d528bbda6f5861c9ee7a89c520b9229cddf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page