From 0beeb850ed7ce0d4a294d0c8b30e730a2e02c353 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 10:57:07 -0600 Subject: [PATCH] chore(deps): pre-commit autoupdate (#243) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 1.5.1 → 1.5.3](https://github.com/tox-dev/pyproject-fmt/compare/1.5.1...1.5.3) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- pyproject.toml | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ff5dd6..8720db8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.5.1" + rev: "1.5.3" hooks: - id: pyproject-fmt diff --git a/pyproject.toml b/pyproject.toml index 946be2c..1e23ab5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,21 @@ responses = "~=0.23.1" [tool.poetry.scripts] tap-dbt = 'tap_dbt.tap:cli' +[tool.poetry-dynamic-versioning] +enable = true +format-jinja = """ + {%- if distance == 0 -%} + {{ serialize_pep440(base, stage, revision) }} + {%- elif revision is not none -%} + {{ serialize_pep440(base, stage, revision + 1, dev=distance, metadata=[commit]) }} + {%- else -%} + {{ serialize_pep440(bump_version(base), stage, revision, dev=distance, metadata=[commit]) }} + {%- endif -%} +""" +metadata = true +style = "pep440" +vcs = "git" + [tool.ruff] line-length = 88 src = ["tap_dbt", "tests"] @@ -66,18 +81,3 @@ known_first_party = ["tap_dbt"] faker = "faker" pytest = "pytest" responses = "responses" - -[tool.poetry-dynamic-versioning] -enable = true -format-jinja = """ - {%- if distance == 0 -%} - {{ serialize_pep440(base, stage, revision) }} - {%- elif revision is not none -%} - {{ serialize_pep440(base, stage, revision + 1, dev=distance, metadata=[commit]) }} - {%- else -%} - {{ serialize_pep440(bump_version(base), stage, revision, dev=distance, metadata=[commit]) }} - {%- endif -%} -""" -metadata = true -style = "pep440" -vcs = "git"