-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (124 loc) · 3.78 KB
/
pyproject.toml
File metadata and controls
138 lines (124 loc) · 3.78 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
136
137
138
[project]
name = "signedshot-api"
version = "0.1.0"
description = "Media authenticity verification API - cryptographic proof for photos and videos"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
authors = [
{name = "SignedShot"}
]
keywords = ["media", "authenticity", "verification", "jwt", "cryptography"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Topic :: Security :: Cryptography",
]
dependencies = [
"alembic>=1.14.0",
"asyncpg>=0.30.0",
"cryptography>=44.0.0",
"fastapi>=0.115.0",
"firebase-admin>=6.6.0",
"prometheus-client>=0.21.0",
"pydantic-settings>=2.6.0",
"pyjwt[crypto]>=2.10.0",
"python-multipart>=0.0.9",
"redis>=5.2.0",
"sentry-sdk>=2.52.0",
"signedshot>=0.1.0",
"slowapi>=0.1.9",
"sqlalchemy[asyncio]>=2.0.0",
"typer>=0.15.0",
"uvicorn>=0.32.0",
]
[dependency-groups]
dev = [
"httpx>=0.28.0",
"poethepoet>=0.31.0",
"psycopg2-binary>=2.9.0",
"pyright>=1.1.390",
"pytest>=8.3.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"ruff>=0.8.0",
"testcontainers[postgres,redis]>=4.10.0",
]
[project.urls]
Homepage = "https://github.com/SignedShot/signedshot-api"
Documentation = "https://github.com/SignedShot/signedshot-api#readme"
Repository = "https://github.com/SignedShot/signedshot-api.git"
Issues = "https://github.com/SignedShot/signedshot-api/issues"
[tool.poe.tasks]
dev = "uvicorn app.main:app --reload"
test = "pytest --ignore=tests/integration"
test-cov = "pytest --ignore=tests/integration --cov=app --cov-report=html --cov-report=term-missing"
test-integration = "pytest tests/integration -v"
lint = "ruff check ."
lint-fix = "ruff check . --fix"
format = "ruff format ."
format-check = "ruff format --check ."
typecheck = "pyright"
clean = "rm -rf .pytest_cache/ .ruff_cache/ htmlcov/ .coverage && find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true"
[tool.poe.tasks.test-all]
shell = "pytest --ignore=tests/integration --cov=app && pytest tests/integration --cov=app --cov-append --cov-report=html --cov-report=term-missing"
help = "Run all tests with combined coverage"
[tool.poe.tasks.check]
sequence = ["lint", "format-check", "typecheck"]
help = "Run all quality checks"
[tool.poe.tasks.fix]
sequence = ["lint-fix", "format"]
help = "Fix linting issues and format code"
[tool.poe.tasks.all]
sequence = ["check", "test-cov"]
help = "Run all checks and tests"
[tool.poe.tasks.pre-commit]
sequence = ["check", "test"]
help = "Run all checks before committing"
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pyright]
include = ["app"]
exclude = ["**/node_modules", "**/__pycache__", ".venv"]
venvPath = "."
venv = ".venv"
pythonVersion = "3.12"
pythonPlatform = "All"
typeCheckingMode = "strict"
reportMissingImports = true
reportMissingTypeStubs = false
reportUnusedImport = true
reportUnusedClass = true
reportUnusedFunction = true
reportUnusedVariable = true
reportDuplicateImport = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"