Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (125 loc) · 3.09 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (125 loc) · 3.09 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[project]
authors = [{name = "Anthony Lukach", email = "anthonylukach@gmail.com"}]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"brotli>=1.2.1",
"cql2>=0.6.1",
"cryptography>=44.0.1",
"fastapi>=0.115.5",
"httpx[http2]>=0.28.0",
"jinja2>=3.1.6",
"pydantic-settings>=2.7.0",
"pyjwt>=2.10.1",
"starlette>=1.0.1",
"starlette-cramjam>=0.4.0",
"uvicorn>=0.32.1",
]
description = "STAC authentication proxy with FastAPI"
keywords = ["STAC", "FastAPI", "Authentication", "Proxy"]
license = {file = "LICENSE"}
name = "stac-auth-proxy"
readme = "README.md"
requires-python = ">=3.10"
version = "1.3.1"
[project.optional-dependencies]
docs = [
"griffe-fieldz>=0.3.0",
"griffe-inherited-docstrings>=1.1.1",
"markdown-gfm-admonition>=0.1.1",
"mkdocs>=1.6.1",
"mkdocs-api-autonav>=0.3.0",
"mkdocs-material[imaging]>=9.6.16",
"mkdocstrings[python]>=0.30.0",
]
lambda = [
"mangum>=0.19.0",
]
metrics = [
"prometheus-fastapi-instrumentator>=8.0.2",
]
[tool.coverage.run]
branch = true
source = ["src/stac_auth_proxy"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/venv/*",
"*/build/*",
"*/dist/*",
"*/htmlcov/*",
"*/lambda.py", # Lambda entry point not tested in unit tests
]
[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.coverage.html]
directory = "htmlcov"
[tool.coverage.xml]
output = "coverage.xml"
[tool.isort]
known_first_party = ["stac_auth_proxy"]
profile = "black"
[tool.ruff.lint]
ignore = ["E501", "D203", "D205", "D212"]
select = ["D", "E", "F"]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=1.12.0"]
[dependency-groups]
dev = [
"jwcrypto>=1.5.6",
"mypy>=1.3.0",
"pre-commit>=3.5.0",
"pytest-asyncio>=0.25.1",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.6.1",
"pytest>=8.3.3",
"ruff>=0.0.238",
"starlette-cramjam>=0.4.0",
"prometheus-fastapi-instrumentator>=8.0.2",
"types-simplejson",
"types-attrs",
"hypothesis>=6.100",
]
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--tb=short",
"--cov=src/stac_auth_proxy",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
"--cov-fail-under=85",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]