A small utility package
Project description
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.45.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.45.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb17b63cccd1f8b6a490cbc1cacfba6a70e50ed82d08d14101e7b846e68cbed |
|
MD5 | 51aaeda629472d4ff3c6a71482168c58 |
|
BLAKE2b-256 | a73e7c27b848b06ba48a56b30e4aaab201b9420e5c5569b62939e0a2fe5803c9 |
Close
Hashes for gaohn_common_utils-0.0.45-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d32d45b8b69b57d2f59c2fc8238172a4e14be3bddaf2ab76e28a53f334f814d1 |
|
MD5 | e7305d3f0d447016c467c3b752a65ba4 |
|
BLAKE2b-256 | 5950bfba85a4f929a3c7d274f77ce3b82806bed99d5116b0355e34ae2261d590 |