Skip to content

Commit

Permalink
Enable pylint for integreat-compass-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
timobrembeck committed Apr 20, 2023
1 parent 361c817 commit ac8676d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integreat_compass/integreat-compass-cli
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"""Django's command-line utility for administrative tasks."""
import os
import sys
from django.core.management.commands.runserver import Command as runserver


def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "integreat_compass.core.settings")

try:
# pylint: disable=import-outside-toplevel
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
Expand Down
3 changes: 2 additions & 1 deletion tools/pylint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ require_installed

# Run pylint
echo "Starting code linting with pylint..." | print_info
pylint .
# Explicitly include cli which does not have a .py ending
pylint . integreat_compass/integreat-compass-cli
echo "✔ Linting finished" | print_success

0 comments on commit ac8676d

Please sign in to comment.