Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.bitrot.db
.bitrot.sha512

_version.py

__pycache__
*.egg-info
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "setuptools-scm[toml]"]
requires = ["setuptools", "setuptools_scm[toml]"]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -31,4 +31,4 @@ test = ["pytest", "pytest-order"]
bitrot = "bitrot:run_from_command_line"

[tool.setuptools_scm]
tag_regex = "^(?P<version>v\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$"
write_to = '_version.py'
9 changes: 5 additions & 4 deletions tests/test_bitrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@

import pytest

from typing import TYPE_CHECKING

TMP = Path("/tmp/")


ReturnCode = int
StdOut = list[str]
StdErr = list[str]
if TYPE_CHECKING:
ReturnCode = int
StdOut = list[str]
StdErr = list[str]


def bitrot(*args: str) -> tuple[ReturnCode, StdOut, StdErr]:
Expand Down