Fix pyproject group for dev-dependencies, remove .bak from backed up file
This commit is contained in:
2
poetry.lock
generated
2
poetry.lock
generated
@@ -403,4 +403,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = "^3.13"
|
python-versions = "^3.13"
|
||||||
content-hash = "7f853bdda7a4b19de579a9c54d756d25b9d75a79736c3f1439b0d37d41ac25ac"
|
content-hash = "1c2812806ab8c56e09acb3105aa4f94bcca569ed25fc4ded38865e5c9b8afaab"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ python = "^3.13"
|
|||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
mirro = "mirro.main:main"
|
mirro = "mirro.main:main"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
pytest = "^9.0.1"
|
pytest = "^9.0.1"
|
||||||
pytest-cov = "^7.0.0"
|
pytest-cov = "^7.0.0"
|
||||||
pre-commit = "^3.8"
|
pre-commit = "^3.8"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ def backup_original(
|
|||||||
timestamp = time.strftime("%Y-%m-%d %H:%M:%S UTC", time.gmtime())
|
timestamp = time.strftime("%Y-%m-%d %H:%M:%S UTC", time.gmtime())
|
||||||
shortstamp = time.strftime("%Y%m%dT%H%M%S", time.gmtime())
|
shortstamp = time.strftime("%Y%m%dT%H%M%S", time.gmtime())
|
||||||
|
|
||||||
backup_name = f"{original_path.name}.orig.{shortstamp}.bak"
|
backup_name = f"{original_path.name}.orig.{shortstamp}"
|
||||||
backup_path = backup_dir / backup_name
|
backup_path = backup_dir / backup_name
|
||||||
|
|
||||||
header = (
|
header = (
|
||||||
|
|||||||
Reference in New Issue
Block a user