Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 26, 2023
1 parent 65def37 commit 7fb15e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testing/test_basic_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import os
import sys
from datetime import date
from pathlib import Path

import pytest

import setuptools_scm
from datetime import date
from setuptools_scm import Configuration
from setuptools_scm import dump_version
from setuptools_scm._run_cmd import run
Expand Down Expand Up @@ -185,7 +185,9 @@ def read(name: str) -> str:

version = "1.2.3.dev18+gb366d8b.d20210415"
scm_version = meta(version, config=c)
scm_version = meta("1.2.3", node="gb366d8b", distance=18, node_date=date(2021, 4, 15), config=c)
scm_version = meta(
"1.2.3", node="gb366d8b", distance=18, node_date=date(2021, 4, 15), config=c
)
dump_version(tmp_path, version, scm_version, "third.py")
lines = read("third.py").splitlines()
assert "__version__ = version = '1.2.3.dev18+gb366d8b.d20210415'" in lines
Expand Down

0 comments on commit 7fb15e6

Please sign in to comment.