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.56.tar.gz
(20.6 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.56.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a60a92897b21775873313b5cd85d41d80a55e99739d7918d31e08e568f2cb8d |
|
MD5 | 5b29e49e2150887c0cb9c7de77ff706f |
|
BLAKE2b-256 | 5da4e3cca345ef3843247f133b6d54c233c21924015c6f5f766f404def97aef3 |
Close
Hashes for gaohn_common_utils-0.0.56-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86daf49c9016aa3fd6dc730bbbc28eec6cab6dffa9e0a59bf3a1628d8ab3a6bd |
|
MD5 | faae4cc4a064963880f226598f7b177e |
|
BLAKE2b-256 | faf6c099d0ecab6165fac98117e6a1417d87fc5e593562188ddb0b48201d8aeb |