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.49.tar.gz
(18.9 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c74752577077b4c681c1071025a9506b72ce86a912297ed703882f0329214c03 |
|
MD5 | 16cb7b172a05420ed8aadb639c3fa2e7 |
|
BLAKE2b-256 | 76c7482286f47a1fe2dd0b01d4db6cfe4b666b25f3d0c0328568e9691eb32554 |
Close
Hashes for gaohn_common_utils-0.0.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9271b29af5c5ab11c925b3fd98a892a407b8459d00efff4938d29982f5bdf2 |
|
MD5 | 5591b48e86ddbf2d063d6d855be6934c |
|
BLAKE2b-256 | c8bc10dd336230b4256a5a686f88ab0ec274b1c479a38402ecbe7146d220575f |