Coder Social home page Coder Social logo

mirrors-poetry's Introduction

poetry pre-commit mirror

The branching model of poetry and the latest release detection of pre-commit are unfortunately incompatible. This repo solves the issue, by releasing new poetry releases itself on the default branch so that pre-commit autoupdate can detect it and corretly upgrade.

How to use:

For supported hooks see: https://python-poetry.org/docs/pre-commit-hooks/

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/cielquan/mirrors-poetry
    rev: ''  # Use the sha / tag you want to point at
    hooks:
    -   id: poetry-check

How it works

This repo has a Github Actions workflow which runs ever night and checks if there is a new release of poetry. It compares the last sorted git tag with the current version of this repo. If a newer version is detected, this repo's pre-commit-hooks config and versions are updated, then the changes are released with the new version. Only a new tag is created and no new Github Release.

pre-commit checks the default branch for the latest created tag and takes it as the latest release. Therefore only the latest major/minor releases are supported and patch releases for older major/minor releases are ignored (by this repo). Should you need such a patch release you need to directly use the poetry repo in your pre-commit config with the needed version.

This repo only tries to solve the issue of running pre-commit autoupdate for poetry.

See for more information: python-poetry/poetry#7018

Links

Inspired by mirror repos of https://github.com/pre-commit. For pre-commit: see https://github.com/pre-commit/pre-commit For poetry: see https://github.com/python-poetry/poetry

mirrors-poetry's People

Contributors

cielquan avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

john-sandall

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.