- Created comprehensive unit tests for HostEntry class, covering creation, validation, and conversion to/from hosts file lines. - Developed unit tests for HostsFile class, including entry management, sorting, and retrieval of active/inactive entries. - Implemented tests for HostsParser class, validating parsing and serialization of hosts files, handling comments, and file operations. - Ensured coverage for edge cases such as empty files, invalid entries, and file permission checks.
24 lines
450 B
TOML
24 lines
450 B
TOML
[project]
|
|
name = "hosts"
|
|
version = "0.1.0"
|
|
description = "A Python TUI application for managing /etc/hosts files"
|
|
readme = "README.md"
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"textual>=0.57.0",
|
|
"pytest>=8.1.1",
|
|
"ruff>=0.12.5",
|
|
]
|
|
|
|
[project.scripts]
|
|
hosts = "hosts.main:main"
|
|
|
|
[tool.uv]
|
|
package = true
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/hosts"]
|