Merge branch 'pr/fix_C0412' into 'master'
Ignore ungrouped-imports pylint error where it clashes with isort (C0412) See merge request librespacefoundation/satnogs/satnogs-network!816merge-requests/816/merge
commit
ca94df4f3d
|
@ -5,7 +5,6 @@ ignored-argument-names=args|kwargs
|
|||
|
||||
[MESSAGES CONTROL]
|
||||
disable=
|
||||
C0412,
|
||||
E1101,
|
||||
E1121,
|
||||
R0401,
|
||||
|
|
|
@ -7,7 +7,8 @@ from django.contrib.auth.models import Group
|
|||
from django.db import transaction
|
||||
from django.test import Client, TestCase
|
||||
from django.utils.timezone import now
|
||||
from factory import fuzzy
|
||||
# C0412 below clashes with isort
|
||||
from factory import fuzzy # pylint: disable=C0412
|
||||
|
||||
import pytest
|
||||
from network.base.models import ANTENNA_BANDS, ANTENNA_TYPES, \
|
||||
|
|
|
@ -4,9 +4,9 @@ For local installation settings please copy .env-dist to .env and edit
|
|||
the appropriate settings in that file. You should not need to edit this
|
||||
file for local settings!
|
||||
"""
|
||||
import sentry_sdk
|
||||
from decouple import Csv, config
|
||||
from dj_database_url import parse as db_url
|
||||
from sentry_sdk import init as sentry_sdk_init
|
||||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
from unipath import Path
|
||||
|
||||
|
@ -238,7 +238,7 @@ LOGGING = {
|
|||
# Sentry
|
||||
SENTRY_ENABLED = config('SENTRY_ENABLED', default=False, cast=bool)
|
||||
if SENTRY_ENABLED:
|
||||
sentry_sdk.init(dsn=config('SENTRY_DSN', default=''), integrations=[DjangoIntegration()])
|
||||
sentry_sdk_init(dsn=config('SENTRY_DSN', default=''), integrations=[DjangoIntegration()])
|
||||
|
||||
# Celery
|
||||
CELERY_ENABLE_UTC = USE_TZ
|
||||
|
|
|
@ -4,7 +4,8 @@ import datetime
|
|||
import factory
|
||||
from django.test import Client, TestCase
|
||||
from django.utils.timezone import utc
|
||||
from factory import fuzzy
|
||||
# C0412 below clashes with isort
|
||||
from factory import fuzzy # pylint: disable=C0412
|
||||
|
||||
import pytest
|
||||
from network.users.models import User
|
||||
|
|
Loading…
Reference in New Issue