[project] name = "bbs" version = "0.1.0" description = "" authors = [{ name = "Nikolai R Kristiansen", email = "nikolaik@gmail.com" }] requires-python = ">=3.9,<3.10" license = "MIT" dependencies = [ "django-cors-headers>=3.10.0,<4", "django-extensions>=3.1.3,<4", "django-rename-app>=0.1.3,<0.2", "Django==4.2.*", "easy-thumbnails>=2.8.1,<3", "gunicorn>=20.1.0,<21", "mysqlclient>=2.0.3,<3", "Pillow>=9.0.0,<10", "sentry-sdk>=1.5.5,<2", "strawberry-graphql-django==0.60.*", "strawberry-graphql==0.270.*", ] [tool.pytest.ini_options] DJANGO_SETTINGS_MODULE = "bbs.settings" [dependency-groups] dev = [ "ruff", "pytest-django", "pytest", ] [tool.ruff] line-length = 120 target-version = "py310" [tool.ruff.lint] select = ["ALL"] ignore = [ "D", # pydocstyle: Allow undocumented code "ANN", # flake8-annotations: Allow untyped code "TD", "FIX", # Allow TODOs and FIXMEs "RUF012", # FIXME: Fix later https://docs.astral.sh/ruff/rules/mutable-class-default/ "FBT002", # Allow boolean args "G004", # Allow logging using f-string "EM101", "EM102", # Allow string in exceptions (prioritice code readability vs exception time readability) "TRY003", # Allow long exception messages "E501", # Allow long lines "COM812", "ISC001", # Avoid conflicting with ruff formatter ] [tool.ruff.lint.per-file-ignores] # Testing code can deviate a bit more "bbs/tests/*.py" = ["S101", "S106", "PLR2004"] "**/test_*.py" = ["S101", "S106", "PLR2004"] "**/tests.py" = ["S101", "S106", "PLR2004"]