From 69bc66471e3866eee50f726e985c4ca391a46735 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 14:16:27 +0000 Subject: [PATCH] fix: resolve CI/CD test, lint, and type-check failures --- app/pyproject.toml | 65 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 app/pyproject.toml diff --git a/app/pyproject.toml b/app/pyproject.toml new file mode 100644 index 0000000..ed3c68f --- /dev/null +++ b/app/pyproject.toml @@ -0,0 +1,65 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "api-snapshot-cli" +version = "0.1.0" +description = "A CLI tool that records HTTP API traffic and generates local mock servers from recorded responses" +readme = "README.md" +requires-python = ">=3.8" +license = {text = "MIT"} +authors = [ + {name = "API Snapshot Contributors"} +] +keywords = ["cli", "http", "api", "mock", "testing", "recording"] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "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 :: Software Development :: Testing", + "Topic :: Internet :: HTTP Servers", +] + +dependencies = [ + "click>=8.0", + "requests>=2.28", + "flask>=2.0", + "rich>=12.0", +] + +[project.optional-dependencies] +test = [ + "pytest>=7.0", + "pytest-click>=1.0", + "responses>=0.22.0", + "pytest-cov>=4.0", +] + +[project.scripts] +api-snapshot = "api_snapshot.cli:main" + +[tool.setuptools.packages.find] +include = ["api_snapshot*"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.ruff] +line-length = 100 +target-version = "py38" + +[tool.ruff.lint] +select = ["E", "W", "F", "I"] +ignore = [] +