Skip to main content

Static code checks used at Alphamoon

Project description

pytest-alphamoon

image image pipeline status

Set of simple static code checks at Alphamoon.


This pytest plugin was generated with Cookiecutter along with @hackebrot's cookiecutter-pytest-plugin template. Source code is based on pytest-isort plugin.

Features

Package contains several plugins, as shown in Table below:

Plugin Description
import-check Checks no imports from scripts/notebooks/user_settings
init-check Checks no __init__.py file in scripts/notebooks
notebook-check Checks notebooks (.ipnyb files) are clean, without outputs

Requirements

pytest>=3.5.0

Installation

You can install "pytest-alphamoon" via pip from PyPI:

$ pip install pytest-alphamoon

Usage

You can add arbitrary plugin from this package by specifying its name in pytest.ini adoption section (proper names are specified in table) along with any other plugin you are currently using.

[pytest]
addopts = --init-check --import-check --notebook-check
          --pep8 --flakes --isort --cov-report term --cov=.

After setting up configuration file specified checks are loaded and executed automatically within test session, after invoking command:

$ pytest

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "pytest-alphamoon" is free and open source software

Issues

If you encounter any problems, please email us at dev@alphamoon.ai, along with a detailed description.

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

pytest-alphamoon-0.1.8.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

pytest_alphamoon-0.1.8-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pytest-alphamoon-0.1.8.tar.gz.

File metadata

  • Download URL: pytest-alphamoon-0.1.8.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for pytest-alphamoon-0.1.8.tar.gz
Algorithm Hash digest
SHA256 811093cb1fce56e2c2b9049a85afb56e4c8cabc37a6edf12933a0a137fee997e
MD5 810514414e07e622c0b333ba2c6f7188
BLAKE2b-256 f6084812b66bba7444406eee02d122635c15d64249eafb51f21fa1cffcf855b5

See more details on using hashes here.

File details

Details for the file pytest_alphamoon-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pytest_alphamoon-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for pytest_alphamoon-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 99e63fc5866552f0519c7d949749a9c0053ce307dd522230dbebc7e8665f2a0c
MD5 28a2bc75f6a07575c1de3a243ec43ee5
BLAKE2b-256 a250b8f700c17da119b1f96f71a6d86db0b977e587d0bbef9f7d3787d0c65870

See more details on using hashes here.

Supported by

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