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.60.tar.gz
(21.7 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.60.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56d244a27d83623a9cc2f65bc913ed25b8ce891c1f4377d33e4c681b225e9e6b |
|
MD5 | b3876cc5c5ff07b0630c988d48a8972f |
|
BLAKE2b-256 | 92249f05ca7e247773480ae7fb0fe749ee0ef230e2ebf3dbe245329b0e0224b6 |
Close
Hashes for gaohn_common_utils-0.0.60-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5470443346074295efb65f6bc09952f82ae9b862a98b684ab4ae3856e99e442a |
|
MD5 | 54a4639da0694626287f7fcb165aaa5d |
|
BLAKE2b-256 | 7419458bdcb6ead2689c8a5f7ddf8302fd096d4693e95c9ebdbe1281d97261e6 |