Initial implementation with unit and integration tests

Reads value1=value2 pairs from a configuration file and replaces every
non-overlapping occurrence of value1 with value2 in a text file, printing
the resulting lines sorted by the number of symbols replaced.

Overlapping patterns resolve to the longest match so the result does not
depend on configuration file ordering. Ties keep their original file order.
This commit is contained in:
2026-08-25 21:21:38 +02:00
commit 40ea68be11
17 changed files with 556 additions and 0 deletions

13
pyproject.toml Normal file
View File

@@ -0,0 +1,13 @@
[project]
name = "value-replacer"
version = "1.0.0"
description = "Replace configured values in a text file."
requires-python = ">=3.9"
dependencies = []
[project.optional-dependencies]
dev = ["pytest>=7.0"]
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]