A small utility package
Project description
Common Utils
TODOs
- Use own
Logger
once the class is finalized in all scripts.
Continuous Integration
Virtual Environment
First, make a virtual environment with make_venv.sh
:
curl -s -o make_venv.sh \
https://raw.githubusercontent.com/gao-hongnan/common-utils/main/scripts/devops/make_venv.sh && \
bash make_venv.sh venv --pyproject --dev && \
source venv/bin/activate && \
rm make_venv.sh
Continue on error vs If Always
See here.
Run Bandit Security Check
bash ./scripts/devops/ci/ci_security_bandit.sh \
--severity-level=low \
--format=json \
--output=bandit_results.json \
common_utils
Run Linter Check
bash ./scripts/devops/ci/ci_linter_pylint.sh \
--rcfile=pyproject.toml \
--fail-under=10 \
--score=yes \
--output-format=json:pylint_results.json,colorized \
common_utils
Run Formatter Black Check
bash ./scripts/devops/ci/ci_formatter_black.sh \
--check \
--diff \
--color \
--verbose \
common_utils
Run Formatter Isort Check
bash ./scripts/devops/ci/ci_formatter_isort.sh \
--check \
--diff \
--color \
--verbose \
common_utils
Run MyPy Type Check
bash ./scripts/devops/ci/ci_typing_mypy.sh \
--config-file=pyproject.toml \
common_utils \
| tee mypy_results.log
Run Unit Test
Run Integration Test
Run System Test
Run Acceptance Test
https://madewithml.com/courses/mlops/testing/
Run Data Test (Great Expectations)
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
gaohn-common-utils-0.0.55.tar.gz
(20.6 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.55.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c364bac121e47df87acc37829609654650fd80817433582b45109cd7ee6f847 |
|
MD5 | d5518ce049b67e2bef09605882a18ead |
|
BLAKE2b-256 | 24c7c693a59cba6f74d476c28171f784d9a9ad77ea4195abc816e6d21edeab8d |
Close
Hashes for gaohn_common_utils-0.0.55-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 833ddf9596f51de700eee8ff83fa54ae055ddb7ac43ab516c532d349d7a9c2e4 |
|
MD5 | 236d9d613f66b14012cc90c706337271 |
|
BLAKE2b-256 | 2f50c59646b9c393d972215a324e8105df842c2128c38042c2d46d64ad827c27 |