[build-system] requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "unitforge" version = "1.0.0" description = "Create, validate, and manage systemd unit files" readme = "README.md" requires-python = ">=3.8.1" license = {text = "MIT"} authors = [ {name = "UnitForge Team", email = "contact@unitforge.dev"}, ] keywords = ["systemd", "unit", "service", "linux", "administration", "devops"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: System Administrators", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: System :: Systems Administration", "Topic :: Software Development :: Code Generators", "Topic :: Utilities", ] dependencies = [ "fastapi>=0.68.0,<1.0.0", "uvicorn[standard]>=0.15.0,<1.0.0", "click>=8.0.0,<9.0.0", "pydantic>=1.8.0,<2.0.0", "jinja2>=3.0.0,<4.0.0", "python-multipart>=0.0.5", "python-dotenv>=0.19.0", "pyyaml>=5.4.0", "validators>=0.18.0", ] [project.optional-dependencies] dev = [ "pytest>=6.0.0", "pytest-asyncio>=0.18.0", "pytest-cov>=4.0.0", "httpx>=0.23.0", "black>=23.0.0", "isort>=5.12.0", "flake8>=7.0.0", "mypy>=1.5.0", "pre-commit>=3.0.0", "bandit>=1.7.0", "pip-audit>=2.6.0", ] web = [ "uvicorn[standard]>=0.15.0,<1.0.0", "python-multipart>=0.0.5", ] [project.scripts] unitforge = "backend.cli:cli" [project.urls] Homepage = "https://github.com/unitforge/unitforge" Documentation = "https://unitforge.readthedocs.io/" Repository = "https://github.com/unitforge/unitforge" "Bug Reports" = "https://github.com/unitforge/unitforge/issues" [tool.hatch.build] include = [ "backend/", "frontend/", "README.md", "LICENSE", ] [tool.hatch.build.targets.wheel] packages = ["backend"] exclude = [ "backend/requirements.txt", # Handled by pyproject.toml ] [tool.black] line-length = 88 target-version = ['py38'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | venv | _build | buck-out | build | dist )/ ''' [tool.isort] profile = "black" multi_line_output = 3 line_length = 88 known_first_party = ["backend", "app", "cli"] [tool.pytest.ini_options] minversion = "6.0" addopts = "-ra -q --strict-markers --strict-config" testpaths = ["tests"] python_files = ["test_*.py", "*_test.py"] python_classes = ["Test*"] python_functions = ["test_*"] markers = [ "unit: Unit tests", "integration: Integration tests", "slow: Slow running tests", ] [tool.coverage.run] source = ["backend"] omit = [ "*/tests/*", "*/venv/*", "*/__pycache__/*", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "def __repr__", "if self.debug:", "if settings.DEBUG", "raise AssertionError", "raise NotImplementedError", "if 0:", "if __name__ == .__main__.:", "class .*\\bProtocol\\):", "@(abc\\.)?abstractmethod", ] [tool.mypy] python_version = "3.9" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true disallow_incomplete_defs = true check_untyped_defs = true disallow_untyped_decorators = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true warn_unreachable = true strict_equality = true [[tool.mypy.overrides]] module = [ "uvicorn.*", "validators.*", "yaml.*", "fastapi.*", "pydantic.*", "jinja2.*", "click.*", ] ignore_missing_imports = true [tool.flake8] max-line-length = 88 extend-ignore = ["E203", "W503"] exclude = [ ".git", "__pycache__", "build", "dist", ".venv", "venv", ]