Skip to content

Commit 6707deb

Browse files
committed
Fix lint errors
1 parent c4181e6 commit 6707deb

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

.prospector.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ pylint:
3333

3434
pyflakes:
3535
run: false
36+
37+
dodgy:
38+
run: false

core/vstorage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class VirtualFinder(BaseFinder):
109109
def __init__(self):
110110
self._storage = VirtualStorage()
111111

112-
def find(self, path, all=False): # pylint: disable=redefined-builtin
112+
def find(self, path, all=False): # pylint: disable=redefined-builtin arguments-differ arguments-renamed
113113
if self._storage.exists(path):
114114
abs_path = join(settings.STATIC_ROOT, path)
115115
return {abs_path} if all else abs_path

docker/rootfs/srv/db-jutut-bootstrap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
# pylint: disable=import-outside-toplevel
2+
13
import os
24
import sys
35
import django
4-
from datetime import timedelta
5-
from django.utils import timezone
66

77

88
def create_default_users():
9-
#from django.contrib.auth.models import User
109
from accounts.models import JututUser as User
1110

1211
u1 = User.objects.create(
@@ -20,6 +19,7 @@ def create_default_users():
2019
u1.set_password("root")
2120
u1.save()
2221

22+
2323
if __name__ == '__main__':
2424
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jutut.settings")
2525
sys.path.insert(0, '')

docker/rootfs/srv/jutut-cont-settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
CELERY_BROKER_URL = "amqp://"
2929

30+
# pylint: disable-next=undefined-variable
3031
LOGGING['loggers'].update({
3132
'': {
3233
'level': 'INFO',
@@ -48,6 +49,7 @@
4849
}
4950
})
5051

52+
# pylint: disable-next=undefined-variable
5153
JUTUT['SERVICE_STATUS'] = (
5254
#('PostgreSQL', ('s6-svstat', '/run/s6/services/postgresql/')),
5355
#('RabbitMQ', ('s6-svstat', '/run/s6/services/rabbitmq/')),

0 commit comments

Comments
 (0)