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.52.tar.gz
(20.5 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.52.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 367ac18cc26b70cf9f34b51ecff3167f38ba847edbc27a7b09d6b6be50ba6dfe |
|
MD5 | 5ee3e52ad04c43eb91854b4299d2d212 |
|
BLAKE2b-256 | a4644ee7d4a1c79a2197230c334caeca590f8147bf59c7238380ff21adbc7623 |
Close
Hashes for gaohn_common_utils-0.0.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a7543b45cd994e0dbb80a95d351fe468cafd90133173a9efbc9d65f59b48dd7 |
|
MD5 | 2902ce573f18d79bb5b789c589c5cf1b |
|
BLAKE2b-256 | cb75533f1a5cb0a0148847f884322221d73ebae5da72e4871830e22e317ea199 |