Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Oct 5, 2024
1 parent f51a944 commit dd44858
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
export DJANGO_SETTINGS_MODULE='aw.settings'
export AW_INIT=1
pylint --version
pylint --recursive=y --load-plugins pylint_django --django-settings-module=aw.settings .
pylint --rcfile .pylintrc --recursive=y --load-plugins pylint_django --django-settings-module=aw.settings .
- name: Running YamlLint
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo 'LINTING Python'
echo ''

export DJANGO_SETTINGS_MODULE='aw.settings'
pylint --recursive=y --load-plugins pylint_django --django-settings-module=aw.settings .
pylint --rcfile .pylintrc --recursive=y --load-plugins pylint_django --django-settings-module=aw.settings .

echo ''
echo 'LINTING YAML'
Expand Down
4 changes: 2 additions & 2 deletions src/ansibleguy-webui/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from aw.config.hardcoded import FILE_TIME_FORMAT, GRP_MANAGER
from aw.config.environment import check_aw_env_var_true, get_aw_env_var, check_aw_env_var_is_set

# pylint: disable=C0415

DB_BACKUP_EXT = '.auto.bak'
DB_BACKUP_RETENTION_DAYS = 7

Expand Down Expand Up @@ -187,7 +189,6 @@ def _migration_needed() -> bool:


def create_first_superuser():
# pylint: disable=C0415
from aw.base import USERS
if len(USERS.objects.filter(is_superuser=True)) == 0:
name = get_aw_env_var('init_admin')
Expand Down Expand Up @@ -216,7 +217,6 @@ def create_first_superuser():


def create_manager_groups():
# pylint: disable=C0415
from django.contrib.auth.models import Group
for grp in GRP_MANAGER.values():
Group.objects.get_or_create(name=grp)
Expand Down

0 comments on commit dd44858

Please sign in to comment.