- Created `test_filters.py` to test the EntryFilter and FilterOptions classes, covering default values, custom values, filtering by status, DNS type, resolution status, and search functionality. - Implemented tests for combined filters and edge cases in filtering. - Added `test_import_export.py` to test the ImportExportService class, including exporting to hosts, JSON, and CSV formats, as well as importing from these formats. - Included tests for handling invalid formats, missing required columns, and warnings during import. - Updated `uv.lock` to include `pytest-asyncio` as a dependency for asynchronous testing.
25 lines
479 B
TOML
25 lines
479 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>=5.0.1",
|
|
"pytest>=8.4.1",
|
|
"pytest-asyncio>=0.21.0",
|
|
"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"]
|