chore: update project skeleton
This commit is contained in:
parent
c041e83a19
commit
1b274974e4
4
.env.example
Normal file
4
.env.example
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
DATABASE_URL=postgresql+asyncpg://proxypool:proxypool@localhost:5432/proxypool
|
||||||
|
REDIS_URL=redis://localhost:6379/0
|
||||||
|
SECRET_KEY=change-me-to-something-random-in-production
|
||||||
|
LOG_LEVEL=DEBUG
|
||||||
9
.gitignore
vendored
9
.gitignore
vendored
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
# Python-generated files
|
# Python-generated files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[oc]
|
*.py[cod]
|
||||||
build/
|
build/
|
||||||
dist/
|
dist/
|
||||||
wheels/
|
wheels/
|
||||||
@ -16,3 +16,10 @@ wheels/
|
|||||||
|
|
||||||
# Virtual environments
|
# Virtual environments
|
||||||
.venv
|
.venv
|
||||||
|
|
||||||
|
# Tooling files
|
||||||
|
.mypy_cache/
|
||||||
|
.pytest_cache/
|
||||||
|
.ruff_cache/
|
||||||
|
.coverage
|
||||||
|
htmlcov/
|
||||||
@ -7,4 +7,50 @@ authors = [
|
|||||||
{ name = "agatha", email = "agatha@juggalol.com" }
|
{ name = "agatha", email = "agatha@juggalol.com" }
|
||||||
]
|
]
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
dependencies = []
|
dependencies = [
|
||||||
|
"aiosmtplib>=5.1.0",
|
||||||
|
"alembic>=1.18.4",
|
||||||
|
"arq>=0.27.0",
|
||||||
|
"asyncpg>=0.31.0",
|
||||||
|
"fastapi>=0.135.1",
|
||||||
|
"httpx[socks]>=0.28.1",
|
||||||
|
"pydantic>=2.12.5",
|
||||||
|
"pydantic-settings>=2.13.1",
|
||||||
|
"redis[hiredis]>=5.3.1",
|
||||||
|
"sqlalchemy[asyncio]>=2.0.48",
|
||||||
|
"uvicorn[standard]>=0.41.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[dependency-groups]
|
||||||
|
dev = [
|
||||||
|
"coverage>=7.13.4",
|
||||||
|
"factory-boy>=3.3.3",
|
||||||
|
"httpx>=0.28.1",
|
||||||
|
"mypy>=1.19.1",
|
||||||
|
"pytest>=9.0.2",
|
||||||
|
"pytest-asyncio>=1.3.0",
|
||||||
|
"pytest-timeout>=2.4.0",
|
||||||
|
"ruff>=0.15.6",
|
||||||
|
]
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["src/proxy_pool"]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
testpaths = ["tests"]
|
||||||
|
asyncio_mode = "auto"
|
||||||
|
|
||||||
|
[tool.ruff]
|
||||||
|
src = ["src"]
|
||||||
|
target-version = "py312"
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
|
select = ["E", "F", "I", "N", "UP", "B", "A", "SIM"]
|
||||||
|
|
||||||
|
[tool.mypy]
|
||||||
|
plugins = ["pydantic.mypy"]
|
||||||
|
strict = true
|
||||||
Loading…
x
Reference in New Issue
Block a user