VSCode config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Silver Ghost 2022-11-30 09:50:28 +03:00
parent d8cd0ec799
commit 14251f75aa
No known key found for this signature in database
5 changed files with 38 additions and 2 deletions

2
.isort.cfg Normal file
View File

@ -0,0 +1,2 @@
[settings]
profile=black

6
.mypy.ini Normal file
View File

@ -0,0 +1,6 @@
[mypy]
plugins =
mypy_django_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = "core.settings"

20
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,20 @@
{
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length=120"
],
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.pylintArgs": [
"--load-plugins",
"pylint_django",
"--django-settings-module=core.settings",
"--max-line-length=120"
],
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"python.linting.mypyEnabled": true
}

View File

@ -1,11 +1,13 @@
import os import os
import pybrake import pybrake
from celery import shared_task from celery import shared_task
from django.contrib.auth.models import User from django.contrib.auth.models import User
from pybrake.middleware.celery import patch_celery from pybrake.middleware.celery import patch_celery
from later42.models.urls import URL
from later42.models.article import Article
from later42.libs.content import get_content from later42.libs.content import get_content
from later42.models.article import Article
from later42.models.urls import URL
AIRBRAKE_PROJECT_ID = os.getenv('AIRBRAKE_PROJECT_ID', None) AIRBRAKE_PROJECT_ID = os.getenv('AIRBRAKE_PROJECT_ID', None)
AIRBRAKE_PROJECT_KEY = os.getenv('AIRBRAKE_PROJECT_KEY', None) AIRBRAKE_PROJECT_KEY = os.getenv('AIRBRAKE_PROJECT_KEY', None)

6
requirements-dev.txt Normal file
View File

@ -0,0 +1,6 @@
black
isort
pylint
pylint-django
mypy
django-stubs