-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (104 loc) · 2.69 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (104 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[project]
name = "apigator"
dynamic = ["version"]
description = "APIgator - Lightweight HTTP API Aggregator with jq filtering"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [
{name = "Niklas Bettgen", email = "niklas@bettgen.de"},
]
keywords = ["api", "http", "aggregator", "jq"]
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"fastapi>=0.100.0",
"uvicorn[standard]>=0.23.0",
"httpx>=0.24.0",
"pyyaml>=6.0",
"jinja2>=3.1.6",
]
version = "0.1.0"
[dependency-groups]
dev = [
"ruff>=0.16.1",
"isort>=8.0.1",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"pyright>=1.1.411",
"pytest-asyncio>=1.4.0",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
version = { source = "file", path = "src/apigator/__init__.py" }
distribution = false
[tool.pdm.scripts]
lint = "ruff check src/ tests/"
format = "ruff format src/ tests/"
isort = "isort src/ tests/"
check = { composite = ["lint", "isort --check-only", "pyright"] }
test = "pytest"
test-cov = "pytest --cov=src/apigator --cov-report=term-missing --cov-report=html"
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"ARG001", # unused function argument
]
[tool.ruff.lint.isort]
known-first-party = ["apigator"]
known-third-party = []
[tool.isort]
profile = "black"
line_length = 100
known_first_party = ["apigator"]
src_paths = ["src", "tests"]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
]
[tool.pyright]
include = ["src", "tests"]
exclude = ["**/node_modules", "**/__pycache__", ".venv"]
typeCheckingMode = "standard"
pythonVersion = "3.11"
reportGeneralTypeIssues = true
reportOptionalMemberAccess = true
reportOptionalSubscript = true
reportPrivateImportUsage = false
reportConstantRedefinition = true