Files
backend/pyproject.toml
Michel Wilhelm 1e0af277fe
All checks were successful
Build / Code quality (push) Successful in 9m51s
Creates a docker image for production / Build the docker image (push) Successful in 57s
♻️ (game.py, signals.py): Refactor comparison operators for better readability
🔧 (apps.py): Import signals in ready method to ensure signals are loaded when the app starts
🔧 (pyproject.toml): Add PGH004 to lint ignore list to avoid linting errors related to PostgreSQL-specific code
2025-02-05 12:06:07 -03:00

94 lines
1.7 KiB
TOML

[project]
name = "mines-backend"
version = "0.0.1"
description = "Backend for the Minesweeper project"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"django-cors-headers>=3.5.0",
"django-dbml>=0.3.5",
"django-mysql>=3.9.0",
"djangorestframework>=3.12.1",
"gevent>=21.12.0",
"mysqlclient>=2.0.1",
"pendulum>=2.1.2",
"sentry-sdk>=1.9.5",
"uWSGI>=2.0.20",
"pytz>=2022.2.1",
"onepasswordconnectsdk>=1.2.0",
]
[tool.uv]
index-url = "https://nexus.makecodes.dev/repository/pypi-proxy/simple"
extra-index-url = [
"https://${NEXUS_USERNAME}:${NEXUS_PASSWORD}@nexus.makecodes.dev/repository/pypi/simple",
]
dev-dependencies = [
"ruff>=0.8.5",
]
[tool.ruff]
line-length = 160
exclude = [
"scripts", # Exclude the scripts path
"node_modules"
]
# Suggestions to add to select: EM
lint.select = [
"E",
"F",
"I",
"W",
"N",
"COM",
"C4",
"PIE",
"T20",
"Q",
"RET",
"SIM",
"ARG",
"PGH",
"RUF",
]
lint.ignore = [
# https://docs.astral.sh/ruff/formatter/#format-suppression
"COM812",
"COM819",
"E111",
"E114",
"E117",
"D206",
"D300",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
"ARG001",
"SIM201",
"RUF012",
"N806",
"ARG002",
"PGH004",
"N805", # Missing type annotation for self in method (Pydantic don't like this)
"SIM108", # Use ternary operator {contents} instead of if-else-block
"RUF009", # Missing dataclass field.
"N999", # Invalid module name. Ruff complains about the project name. Name: test-api / Expected: test_api
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.ruff.lint.isort]
case-sensitive = true
split-on-trailing-comma = false
[tool.ruff.lint.mccabe]
max-complexity = 10