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.53.tar.gz
(20.3 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.53.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 263647cce5f41ee29951c186c949a4c86f0e9b1ea609e1f33fee3f039d990816 |
|
MD5 | 6bf15cd901943ec7abc9f52ff7c16305 |
|
BLAKE2b-256 | 1075b0887729fce5b4531df771527a411ba0f766a1e5272269f436f0e2117b69 |
Close
Hashes for gaohn_common_utils-0.0.53-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f684d63ba60bc59237ddd8bbdac4c106b423294fa5fc864aa7440e129748d5 |
|
MD5 | 58ae764ed056224d707ad6c94667e58d |
|
BLAKE2b-256 | db7f59525d5ff2f9f8d8b4b5ede09d8738a98e79d5d3b33ae6e94758e57abdb8 |