Skip to main content

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

  1. Install dependencies using poetry install --with dev
  2. Install git hooks using pre-commit install. This will run linters and formatters before each push to repository.

Pycharm

  1. 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 running poetry env info in the terminal.
  2. Install Pylint plugin for Pycharm.
  3. Enable "Reformat code" on save. This can be done by going to File -> Settings -> Tools -> Actions On Save.

How to run

  1. Run poetry shell to activate the virtual environment.
  2. 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


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.dev1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

gitoptim-0.1.0.dev1-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page