From ec3fbe9be722d2a74b4363cfd717259978cd8edb Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Mon, 11 Nov 2024 16:26:06 +0100 Subject: [PATCH] added precommit poe task --- README.md | 5 +++++ pyproject.toml | 1 + 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index a5eeecf..87d3723 100644 --- a/README.md +++ b/README.md @@ -384,6 +384,11 @@ poe format poe lint ``` +If you just want to make sure that your code passes all the necessary checks to get a green build, you can simply run: +```shell +poe precommit +``` + ## Donations If this project makes you happy by reducing your development time, you can make me happy by treating me to a cup of coffee, or become a [Sponsor of this project](https://github.com/sponsors/jdepoix) :) diff --git a/pyproject.toml b/pyproject.toml index 2cb4a0c..ad6de10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ coverage.shell = "coverage run -m unittest discover && coverage report -m --fail format = "ruff format youtube_transcript_api" ci-format = "ruff format youtube_transcript_api --check" lint = "ruff check youtube_transcript_api" +precommit.shell = "poe format && poe lint && poe coverage" [tool.poetry.dependencies] python = ">=3.8,<3.14"