-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (94 loc) · 2.18 KB
/
pyproject.toml
File metadata and controls
104 lines (94 loc) · 2.18 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
[project]
name = "cognito-auth"
version = "0.5.0"
description = "Unified authentication and authorisation for AWS Cognito-protected web applications across multiple frameworks"
readme = "README.md"
authors = [
{ name = "David Gillespie", email = "david.gillespie@digital.cabinet-office.gov.uk" }
]
license = { text = "MIT" }
requires-python = ">=3.12"
dependencies = [
"python-jose>=3.5.0",
"requests>=2.32.5",
"boto3>=1.35.0",
"pydantic[email]>=2.0.0",
"cachetools>=6.2.0",
]
[project.optional-dependencies]
streamlit = ["streamlit>=1.0.0"]
dash = ["dash>=2.0.0", "flask>=2.0.0"]
fastapi = ["fastapi>=0.100.0"]
gradio = ["gradio>=4.0.0"]
df = ["pandas>=2.2.0"]
all = [
"streamlit>=1.0.0",
"dash>=2.0.0",
"flask>=2.0.0",
"fastapi>=0.100.0",
"gradio>=4.0.0",
"pandas>=2.2.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"pytest>=8.4.2",
"pytest-cov>=6.0.0",
"ruff>=0.13.3",
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.26.0",
"pandas>=2.2.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"-ra",
]
[tool.coverage.run]
source = ["src"]
branch = true
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/.venv/*",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.ruff]
# Target Python version (e.g., Python 3.10)
target-version = "py312"
# Exclude files or directories
exclude = [
".git",
"__pypackages__",
".mypy_cache",
".pytest_cache",
".venv",
"venv",
]
[tool.ruff.lint]
# Enable specific rule sets by their prefix
# E (Pycodestyle errors), F (Pyflakes), I (isort), B (Bugbear), UP (Pyupgrade), etc.
select = ["E", "F", "I", "B", "UP", "N", "A", "PT"]
# Configure the 'isort' rule set (I)
[tool.ruff.lint.isort]
force-single-line = false