This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
rotini/backend/pyproject.toml
Marc Cataford 0242b2d5ff
refactor: FastAPI -> Django migration (#41)
* build(backend): set up Django 4.2 scaffolding

* feat: porting files API

feat: file ownership basics

feat: gaps in test compatibility

* test: port files API tests

* fix(tests): test database port 5432>5431 to avoid conflict with application database

* feat(auth): LoginView, middleware to handle JWT bearer tokens

* refactor: clean up old FastAPI logic, temporary utils

* refactor: resolve LoginView linting

* feat: user creation + test coverage

* test: session creation coverage

* refactor: hoist secrets, replace placeholders

* chore: clear linting errors+warns
2023-11-26 21:34:09 -05:00

61 lines
1.6 KiB
TOML

[project]
name = "rotini"
version = "0.0.0"
requires-python = ">= 3.10"
dependencies = [
"uvicorn[standard]",
"python-multipart",
"pyjwt",
"psycopg2",
"django",
"djangorestframework",
]
[project.optional-dependencies]
dev = [
"anyio",
"black",
"pylint",
"pylint_django",
"pytest-django",
"pytest",
]
[tool.setuptools]
packages = ["rotini"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE="base.settings"
pythonpath=[
".",
"./rotini",
]
python_files=[
"*_test.py"
]
[tool.pylint.'MASTER']
load-plugins="pylint_django"
django-settings-module="base.settings"
[tool.pylint.main]
ignore-paths = ["^\\\\.venv|^/.venv"]
ignore-patterns = ["^\\.#"]
py-version = "3.11"
source-roots = ["rotini"]
suggestion-mode = true
[tool.pylint.format]
max-line-length = 100
[tool.pylint."messages control"]
disable = ["missing-class-docstring", "too-many-ancestors", "raw-checker-failed", "bad-inline-option", "locally-disabled", "file-ignored", "suppressed-message", "useless-suppression", "deprecated-pragma", "use-symbolic-message-instead", "invalid-name", "missing-function-docstring", "missing-module-docstring", "too-many-locals", "line-too-long", "too-few-public-methods", "fixme"]
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where it
# should appear only once). See also the "--disable" option for examples.
enable = ["c-extension-no-member"]
[tool.pylint.similarities]
min-similarity-lines = 10