Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

poetry-git-branch-plugin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poetry-git-branch-plugin

A poetry plugin to store the current git branch into environment variable when poetry runs any command.

  • 0.0.17
  • PyPI
  • Socket score

Maintainers
1

Poetry Git Branch Plugin

driconfig

CI/CDTests Coverage Status Tests types - Mypy Ruff
PackagePyPI PyPI - Downloads PyPI - Python Version GitHub

Documentation: https://dribia.github.io/poetry-git-branch-plugin

Source Code: https://github.com/dribia/poetry-git-branch-plugin


A simple poetry plugin that sets an environment variable containing the name of the current checked-out branch before executing any poetry command.

Installation

Depending on how you installed poetry, there are different ways to install this plugin.

The easiest way to install this plugin is to use the poetry self add command:

poetry self add poetry-git-branch-plugin

If you installed poetry using pip:

pip install poetry-git-branch-plugin

If you installed poetry using pipx:

pipx inject poetry poetry-git-branch-plugin

You can also specify that a plugin is required for your project in the tool.poetry.requires-plugins section of the pyproject.toml file:

[tool.poetry.requires-plugins]
poetry-git-branch-plugin = ">=0.0.1"

Usage

Our main use case is in situations where DBT needs access to the current git branch name to set the name of the target schema.

Contributing

Poetry is the best way to interact with this project, to install it, follow the official Poetry installation guide.

With poetry installed, one can install the project dependencies with:

poetry install

Then, to run the project unit tests:

make test-unit

To run the linters (ruff and mypy):

make lint

To apply all code formatting:

make format

License

poetry-git-branch-plugin is distributed under the terms of the MIT license. Check the LICENSE file for further details.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc