-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
191 lines (180 loc) · 5.52 KB
/
pyproject.toml
File metadata and controls
191 lines (180 loc) · 5.52 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# pyproject.toml: unified Python project metadata and tool configuration file
# See PEP-518: https://www.python.org/dev/peps/pep-0518/
# --------------------------------------------------------------------------
# Project setup
# --------------------------------------------------------------------------
# Project Metadata
# Reference: https://www.python.org/dev/peps/pep-0621/
[project]
name = "code-with-teddy"
version = "1.0"
description = "Teddy's portfolio website."
readme = "README.md"
requires-python = ">=3.14"
classifiers = [
"Framework :: FastAPI",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.14",
]
maintainers = [
{ name = "Theodore Williams", email = "theodore.f.williams@gmail.com" },
]
# Dependencies specified here should ideally not be pinned, unless
# recommended by the package itself. This follows best practices
# established by PyPA:
# https://packaging.python.org/discussions/install-requires-vs-requirements/
dependencies = [
# Aiocache: async cache library (used for sitemap caching; note: not used for HTML routes due to nonce conflicts)
"aiocache",
# Alembic: SQLAlchemy migration tool
"alembic",
# Asyncpg: PostgreSQL database adapter
"asyncpg",
# Bcrypt: password hashing library
"bcrypt",
# BeautifulSoup: HTML parser
"beautifulsoup4",
# Bleach: HTML sanitizer
"bleach",
# Cryptography: cryptographic library
"cryptography",
# Email-validator: email validation library for Pydantic
"email-validator",
# FastAPI: web framework
"fastapi",
# Gunicorn: load balancer
"gunicorn",
# Itsdangerous: cryptographically signed tokens
"itsdangerous",
# Jinja-partials: Jinja2 template partials
"jinja-partials",
# Jinja2: templating engine
"jinja2",
# MailerSend: email sending service
"mailersend",
# Markdown: Markdown parser
"markdown",
# Micawber: oEmbed consumer
"micawber",
# Pillow: image processing library
"pillow",
# PsycoPG: PostgreSQL database adapter
"psycopg[binary,pool]",
# Pydantic: data modeling, validation and settings management
"pydantic",
# Pydantic-settings: Pydantic settings management
"pydantic-settings",
# Pygments: syntax highlighting library
"pygments",
# PyJWT: JSON Web tokens
"pyjwt",
# Pymdown-extensions: Markdown extensions
"pymdown-extensions",
# Python-mulitpart: multipart form data parser
"python-multipart",
# Pytz: timezone library
"pytz",
# Sentry-sdk: error tracking
"sentry-sdk[fastapi,sqlalchemy]", # aiohttp, httpx (dev deps)
# SQLAlchemy: database toolkit
"sqlalchemy[asyncio]",
# Typer: CLI toolkit (needed in prod for Alembic migrations)
"typer[all]",
# Uvicorn: ASGI server
"uvicorn[standard]",
# werkzeug: WSGI utility library (also useful utilities for our ASGI app)
"werkzeug",
# WTForms: web forms library
"wtforms[email]",
]
[project.optional-dependencies]
dev = [
# Aiohttp: async HTTP client/server
"aiohttp",
# Anyio: async library
"anyio",
# Black: code formatter (for blacken-docs)
"black",
# Docker: containerization tool
"docker",
# Faker: fake data generator
"faker",
# HTTPX: async HTTP client
"httpx",
# Pip-tools: dependency management
"pip-tools",
# Playwright: browser automation
"playwright",
# Pre-commit: git pre-commit hooks
"pre-commit",
# Pytest: testing framework
"pytest",
# Pytest-cov: coverage support for pytest
"pytest-cov",
# Pytest-mock: mock support for pytest
"pytest-mock",
# Pytest-playwright: Playwright support for pytest
"pytest-playwright",
# Pytest-rerunfailures: re-run failed tests
"pytest-rerunfailures",
# Pyyaml: YAML parser
"pyyaml",
# Requests: HTTP client
"requests",
# Rich: pretty terminal output
"rich",
# Ruff: fast all-in-one linter, written in Rust
"ruff",
# Setuptools: build system
"setuptools",
# SQLAlchemy-utils: utility functions for SQLAlchemy
"sqlalchemy-utils",
# Tenacity: retrying library
"tenacity",
# Ty: static type checker
"ty",
# Types-*: type stubs for external libraries
"types-bleach",
"types-markdown",
"types-pyyaml",
"types-pytz",
"types-requests",
]
[project.urls]
source = "https://github.com/VerdantFox/code-with-teddy"
issues = "https://github.com/VerdantFox/code-with-teddy/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# --------------------------------------------------------------------------
# Tool configurations
# --------------------------------------------------------------------------
# ------------------------------ Pytest ------------------------------------
[tool.pytest.ini_options]
testpaths = ["tests"]
# addopts = "--reruns 2"
filterwarnings = [
# Ignore warnings from all sources so that we can ignore warnings from
# external libraries that we can't control.
"ignore",
# Overwrite to error on warnings from our own code.
"error:::tests",
"error:::app",
"error:::scripts",
]
# Coverage
[tool.coverage.run]
branch = true
concurrency = ["greenlet", "thread"]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
"if __name__ == __main__:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"def __repr__",
"def __str__",
]
include = ["app/*", "scripts/*", "tests/*"]
skip_covered = true # Don't show fully covered files in the report