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.54.tar.gz
(20.5 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.54.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c65ed66ad4df2b9e8eee5da7b26918040b7ec1eb891a65d7100e8d781d245a6 |
|
MD5 | 1e1c9b987f9cf93cf5dec0398fb66e60 |
|
BLAKE2b-256 | 100eaa83947974feb26268093ad54843b5bc83c28f466fa3900e80035f4f7a70 |
Close
Hashes for gaohn_common_utils-0.0.54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21b583ce6f0580f0664c9af2244c834d022309f63e9d056c79ef22fdd9c7ada2 |
|
MD5 | 5b1f784c5ced6072a2e99471ecfbc08b |
|
BLAKE2b-256 | 175bf636deaada6a1229717d3b673f57cda3c4f12e70a39e0b646464ac9d476e |