SDK tool to connect Gitlab pipelines with Workflows
Project description
Gitoptim SDK
Introduction
Gitoptim SDK is a CLI tool that enables integration of Gitlab pipelines and Workflows. It is designed to be used in CI/CD jobs.
Commands
memlab
TODO
Development
Prerequisites
- Python 3.11 or later
- Poetry for dependency management
Setup
- Install dependencies using
poetry install --with dev
- Install git hooks using
pre-commit install
. This will run linters and formatters before each push to repository.
Pycharm
- Set the Python interpreter to the one created by Poetry. This can be done by going
to
File -> Settings -> Project-> Python Interpreter
and selecting the interpreter created by Poetry. Path to the interpreter can be found by runningpoetry env info
in the terminal. - Install Pylint plugin for Pycharm.
- Enable "Reformat code" on save. This can be done by going to
File -> Settings -> Tools -> Actions On Save
.
How to run
- Run
poetry shell
to activate the virtual environment. - Run
python -m gitoptim
to start the CLI.
Important: In order to push to repository you need to have poetry shell enabled so that git hooks can run.
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
gitoptim-0.1.0.dev6.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for gitoptim-0.1.0.dev6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ee9dc805439625bcd2bf711f14b9c465ba1aadcfb1f8c81632a1503bd97321d |
|
MD5 | b3ad8ddb1ea10960387a464f4e3075ee |
|
BLAKE2b-256 | d2cac60bac14a1c19737e3a3252e7a35bfc21cd05c7f76147318b02135391f14 |