Static code checks used at Alphamoon
Project description
pytest-alphamoon
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_alphamoon-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d12497bb47e53c48727785a73a3e7e4fba5901c24773cfbc3e0eaf0e571a01a |
|
MD5 | af426703d3e9c6f87b208063a399dfc6 |
|
BLAKE2b-256 | 0a559e78480d81481a196af7eaf984aea433e7965bc91f6ef60406d048143b74 |