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.62.tar.gz
(21.7 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.62.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e505f0e63c5d946699799c2b87d5558d8e3c66348c2204ee43c869b863e27ada |
|
MD5 | 1e42486675c3b524892b0a3029387c5b |
|
BLAKE2b-256 | 758814b9798ca9f9d36f446b4be4e77770f4ac62c085b95a0f8bee718a2d8e53 |
Close
Hashes for gaohn_common_utils-0.0.62-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92363aaee5814c76a5bf2749dc6e3d1b3fa936e83cef9e5bb6bf43bf918ee22 |
|
MD5 | 7702104cbe33bf7317e14143b494a945 |
|
BLAKE2b-256 | dd79293fb83dec80866d73cee03a0136257c2bb22e95550a19b665ca534a8db6 |