From 6ed62496970346a6bf58b5297fb5e2f729f887b3 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 17:29:57 +0000 Subject: [PATCH] fix: resolve CI linting issues --- pyproject.toml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 244843c..2a87097 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ readme = "README.md" requires-python = ">=3.9" license = {text = "MIT"} authors = [ - {name = "LocalAPI Contributors"} + {name = "LocalAPI Docs", email = "dev@localapi.example.com"} ] keywords = ["api", "documentation", "openapi", "swagger", "cli"] classifiers = [ @@ -36,24 +36,32 @@ dependencies = [ dev = [ "pytest>=7.0.0", "pytest-cov>=4.0.0", + "ruff>=0.1.0", + "mypy>=1.0.0", ] [project.scripts] localapi-docs = "src.cli:main" -[tool.setuptools.packages.find] -where = ["src"] - [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py"] -python_classes = ["Test*"] python_functions = ["test_*"] addopts = "-v --tb=short" -[tool.coverage.run] -source = ["src"] -omit = ["tests/*"] +[tool.ruff] +target-version = "py39" +line-length = 100 -[tool.coverage.report] -exclude_lines = ["pragma: no cover", "def __repr__", "raise AssertionError", "raise NotImplementedError"] +[tool.ruff.lint] +select = ["E", "F", "W", "C90", "I", "N", "UP", "B", "C4"] +ignore = ["C901"] + +[tool.ruff.lint.per-file-ignores] +"__init__.py" = ["F401"] + +[tool.mypy] +python_version = "3.9" +warn_return_any = true +warn_unused_ignores = true +disallow_untyped_defs = false