[project] name = "mdb" version = "0.1.0" description = "Machine Database - A Django app for managing computer equipment" authors = [ { name = "EDB", email = "edb@neuf.no" }, ] requires-python = ">=3.14" license = "GPL-2.0-or-later" dependencies = [ "django>=6.0.3", "django-extensions>=4.1", "djangorestframework>=3.17.0", "fabric>=3.2.2", "freezegun>=1.5.5", "gunicorn>=25.1.0", "ipaddress>=1.0.23,<2.0.0", "requests>=2.32.5", "sentry-sdk>=2.55.0", ] [dependency-groups] # Only needed on the server (LDAP is configured in local_settings.py). # Kept separate so CI can skip building python-ldap from source. prod = [ "django-auth-ldap>=5.3.0", ] dev = [ "pytest>=9.0.2", "pytest-django>=4.12.0", "ruff>=0.15.6,<1.0.0", ] [tool.uv] default-groups = ["dev", "prod"] [tool.ruff] exclude = ["mdb/migrations/**"] [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "UP", # pyupgrade ] ignore = [ "E501", # line-too-long ] [tool.pytest.ini_options] DJANGO_SETTINGS_MODULE = "mdbsite.settings" python_files = ["tests/test_*.py"] [build-system] requires = ["hatchling"] build-backend = "hatchling.build"