test(api): lint code using pylint

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2203>
This commit is contained in:
jo 2022-11-24 18:00:58 +01:00 committed by jooola
commit 6806adb4f5
6 changed files with 218 additions and 10 deletions

View file

@ -25,7 +25,7 @@ exclude = ["tests"]
funkwhale-manage = 'funkwhale_api.main:main'
[tool.poetry.dependencies]
python = "^3.7"
python = "^3.7.2"
# Django
dj-rest-auth = { extras = ["with_social"], version = "2.2.7" }
@ -115,16 +115,17 @@ pytest-randomly = "==3.12.0"
pytest-sugar = "==0.9.6"
requests-mock = "==1.10.0"
[tool.poetry.group.dev.dependencies]
pylint = "==2.15.6"
pylint-django = "==2.5.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pylint.master]
load-plugins = [
"pylint_common",
"pylint_django",
"pylint_celery",
]
load-plugins = ["pylint_django"]
django-settings-module = "config.settings.testing"
[tool.pylint.messages_control]
disable = [