Sonar and gitea settings
Some checks failed
Build / Code quality (push) Failing after 25s

This commit is contained in:
2025-02-04 15:45:04 -03:00
parent f51e7c83c6
commit 7b588edda6
11 changed files with 903 additions and 943 deletions

View File

@@ -1,28 +1,87 @@
[tool.poetry]
[project]
name = "mines-backend"
version = "0.1.0"
description = ""
authors = ["Michel Wilhelm <michelwilhelm@gmail.com>"]
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.poetry.dependencies]
python = ">=3.8,<4"
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.poetry.dev-dependencies]
pre-commit = "^2.20.0"
black = "^22.6.0"
flake8 = "^5.0.4"
[tool.ruff]
line-length = 160
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
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