[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", "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