From 614b4187c7bb236f53e80d64112e3f1ba2d1832d Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 28 Dec 2020 20:23:46 +0100 Subject: [PATCH] fix linting --- Makefile | 6 +++--- conf/manage.py | 1 + conf/setup_user.py | 1 - publish.py | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4427375..301df6f 100644 --- a/Makefile +++ b/Makefile @@ -26,13 +26,13 @@ update: install-poetry ## update the sources and installation poetry update lint: ## Run code formatters and linter - poetry run flynt --fail-on-change --line_length=${MAX_LINE_LENGTH} django_ynh + poetry run flynt --fail-on-change --line_length=${MAX_LINE_LENGTH} . poetry run isort --check-only . poetry run flake8 django_ynh fix-code-style: ## Fix code formatting - poetry run flynt --line_length=${MAX_LINE_LENGTH} django_ynh - poetry run black --verbose --safe --line-length=${MAX_LINE_LENGTH} --skip-string-normalization django_ynh django_ynh_tests + poetry run flynt --line_length=${MAX_LINE_LENGTH} . + poetry run black --verbose --safe --line-length=${MAX_LINE_LENGTH} --skip-string-normalization . poetry run isort . tox-listenvs: check-poetry ## List all tox test environments diff --git a/conf/manage.py b/conf/manage.py index de8943f..5451027 100755 --- a/conf/manage.py +++ b/conf/manage.py @@ -7,6 +7,7 @@ import sys def main(): os.environ['DJANGO_SETTINGS_MODULE'] = 'django_ynh_demo_settings' from django.core.management import execute_from_command_line + execute_from_command_line(sys.argv) diff --git a/conf/setup_user.py b/conf/setup_user.py index 1b55b11..983c5f3 100644 --- a/conf/setup_user.py +++ b/conf/setup_user.py @@ -1,4 +1,3 @@ - def setup_demo_user(user): """ The django_ynh DEMO use the Django admin. So we need a "staff" user ;) diff --git a/publish.py b/publish.py index 932d123..9e58163 100644 --- a/publish.py +++ b/publish.py @@ -27,5 +27,6 @@ def publish(): creole_readme=True, # don't publish if README.rst is not up-to-date ) + if __name__ == '__main__': publish()