Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Jan 17, 2024
1 parent 0a9ca17 commit 2e9bbd5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/ansible-webui/aw/utils/subps.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def process(cmd: list, timeout_sec: int = None, shell: bool = False) -> dict:
OSError, IOError) as error:
stdout, stderr, rc = None, str(error), 1

return dict(
stdout=stdout,
stderr=stderr,
rc=rc,
)
return {
'stdout': stdout,
'stderr': stderr,
'rc': rc,
}
1 change: 1 addition & 0 deletions src/ansible-webui/base/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def _make_migrations():


def create_first_superuser():
# pylint: disable=C0415
from django.contrib.auth.models import User
if len(User.objects.filter(is_superuser=True)) == 0:
name = 'ansible'
Expand Down
2 changes: 1 addition & 1 deletion src/ansible-webui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

init_globals()

# pylint: disable=C0415
# pylint: disable=C0413,C0415
from base.db import install_or_migrate_db


Expand Down
2 changes: 1 addition & 1 deletion src/ansible-webui/manage.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python3

from os import environ
from os import path as os_path
from sys import argv as sys_argv
from sys import path as sys_path
from os import path as os_path


def main():
Expand Down

0 comments on commit 2e9bbd5

Please sign in to comment.