This commit is contained in:
parent
d8cd0ec799
commit
14251f75aa
2
.isort.cfg
Normal file
2
.isort.cfg
Normal file
@ -0,0 +1,2 @@
|
||||
[settings]
|
||||
profile=black
|
6
.mypy.ini
Normal file
6
.mypy.ini
Normal 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
20
.vscode/settings.json
vendored
Normal 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
|
||||
}
|
@ -1,11 +1,13 @@
|
||||
import os
|
||||
|
||||
import pybrake
|
||||
from celery import shared_task
|
||||
from django.contrib.auth.models import User
|
||||
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.models.article import Article
|
||||
from later42.models.urls import URL
|
||||
|
||||
AIRBRAKE_PROJECT_ID = os.getenv('AIRBRAKE_PROJECT_ID', None)
|
||||
AIRBRAKE_PROJECT_KEY = os.getenv('AIRBRAKE_PROJECT_KEY', None)
|
||||
|
6
requirements-dev.txt
Normal file
6
requirements-dev.txt
Normal file
@ -0,0 +1,6 @@
|
||||
black
|
||||
isort
|
||||
pylint
|
||||
pylint-django
|
||||
mypy
|
||||
django-stubs
|
Loading…
Reference in New Issue
Block a user