lockbox/pyproject.toml

95 lines
1.5 KiB
TOML

[tool.poetry]
name = "lockbox"
version = "0.1.0"
description = "File Sharing Service"
authors = ["Jordi Loyzaga <jordi@loyzaga.net>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "3.12"
django = "~4.2.0"
whitenoise = "^6.6.0"
djangorestframework = "^3.14.0"
drf-nested-routers = "^0.93.5"
python-dotenv = "^1.0.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.0"
pytest-django = "^4.8.0"
pytest-cov = "^4.1.0"
ruff = "^0.2.1"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "lockbox.settings"
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
[tool.coverage.run]
omit = [
# management
"*/migrations/*",
# are tests
"*/tests/*",
# no code
"*/__init__.py",
"*/apps.py",
"*/admin.py",
"*/constants.py",
# no need to test
"*/managers.py",
# "*/models.py",
"*/urls.py",
"manage.py",
"lockbox/asgi.py",
"lockbox/wsgi.py",
]
[tool.ruff]
exclude = [
"*/migrations/*",
".pyscripts/*",
"pyenv*",
".pyenv*",
".git",
".venv",
"manage.py",
]
force-exclude = true
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN",
"ARG001",
"ARG002",
"D",
"DJ001",
"DJ006",
"DJ012",
"ERA001",
"FIX",
"N801",
"PLR0913",
"Q000",
"RUF012",
"S101",
"SIM102",
"SLF001",
"T201",
"TD",
"TRY",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"