A small utility package
Project description
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.40.tar.gz
(17.0 kB
view hashes)
Built Distribution
Close
Hashes for gaohn-common-utils-0.0.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fb864c72f5464250ce4e5dbf9ef5bf6ac2e05ea3bb59f38085658d5114b0b41 |
|
MD5 | 80d0dd03ae3f6299ac2f5c2d9c51aefa |
|
BLAKE2b-256 | bb676ea6da30ede91622d2d3a874c84868d7d646b4a66ef3abd9d4732b4aa5e8 |
Close
Hashes for gaohn_common_utils-0.0.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffac7bd71e2cb3319291dbca9054c61a051b37c3b7ac3e77e079f61216063c0a |
|
MD5 | 54cd190687f3ae9956e0e7f0730754e5 |
|
BLAKE2b-256 | 57389104b70366b34b25ebf60660e18c8927234740f9a63abfb6e8a5cd851c08 |