This commit is contained in:
@@ -10,7 +10,7 @@ readme = "README.md"
|
|||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
license = {text = "MIT"}
|
license = {text = "MIT"}
|
||||||
authors = [
|
authors = [
|
||||||
{name = "LocalAPI Contributors"}
|
{name = "LocalAPI Docs", email = "dev@localapi.example.com"}
|
||||||
]
|
]
|
||||||
keywords = ["api", "documentation", "openapi", "swagger", "cli"]
|
keywords = ["api", "documentation", "openapi", "swagger", "cli"]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
@@ -36,24 +36,32 @@ dependencies = [
|
|||||||
dev = [
|
dev = [
|
||||||
"pytest>=7.0.0",
|
"pytest>=7.0.0",
|
||||||
"pytest-cov>=4.0.0",
|
"pytest-cov>=4.0.0",
|
||||||
|
"ruff>=0.1.0",
|
||||||
|
"mypy>=1.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
localapi-docs = "src.cli:main"
|
localapi-docs = "src.cli:main"
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
|
||||||
where = ["src"]
|
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
python_files = ["test_*.py"]
|
python_files = ["test_*.py"]
|
||||||
python_classes = ["Test*"]
|
|
||||||
python_functions = ["test_*"]
|
python_functions = ["test_*"]
|
||||||
addopts = "-v --tb=short"
|
addopts = "-v --tb=short"
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.ruff]
|
||||||
source = ["src"]
|
target-version = "py39"
|
||||||
omit = ["tests/*"]
|
line-length = 100
|
||||||
|
|
||||||
[tool.coverage.report]
|
[tool.ruff.lint]
|
||||||
exclude_lines = ["pragma: no cover", "def __repr__", "raise AssertionError", "raise NotImplementedError"]
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user