diff --git a/galaxy_ng/_vendor/automated_logging/__init__.py b/galaxy_ng/_vendor/automated_logging/__init__.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/_vendor/automated_logging/apps.py b/galaxy_ng/_vendor/automated_logging/apps.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/_vendor/automated_logging/handlers.py b/galaxy_ng/_vendor/automated_logging/handlers.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/_vendor/automated_logging/models.py b/galaxy_ng/_vendor/automated_logging/models.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/app/api/ui/v1/views/feature_flags.py b/galaxy_ng/app/api/ui/v1/views/feature_flags.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/app/dynaconf_hooks.py b/galaxy_ng/app/dynaconf_hooks.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/app/management/commands/sync-collection-download-counts.py b/galaxy_ng/app/management/commands/sync-collection-download-counts.py index d7e6a83179..d319da7016 100644 --- a/galaxy_ng/app/management/commands/sync-collection-download-counts.py +++ b/galaxy_ng/app/management/commands/sync-collection-download-counts.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python3 - - import datetime import logging import requests diff --git a/galaxy_ng/app/migrations/0047_update_role_search_vector_trigger.py b/galaxy_ng/app/migrations/0047_update_role_search_vector_trigger.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/social/pipeline/user.py b/galaxy_ng/social/pipeline/user.py index f656f2c2b9..8ec463e429 100644 --- a/galaxy_ng/social/pipeline/user.py +++ b/galaxy_ng/social/pipeline/user.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - import logging from galaxy_ng.app.models.auth import User diff --git a/galaxy_ng/tests/integration/api/test_ui_namespace_owners.py b/galaxy_ng/tests/integration/api/test_ui_namespace_owners.py index 865e6bb865..935a99e8cd 100644 --- a/galaxy_ng/tests/integration/api/test_ui_namespace_owners.py +++ b/galaxy_ng/tests/integration/api/test_ui_namespace_owners.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - import copy import random diff --git a/galaxy_ng/tests/integration/api/test_ui_paths.py b/galaxy_ng/tests/integration/api/test_ui_paths.py index aa0b073824..787044b152 100644 --- a/galaxy_ng/tests/integration/api/test_ui_paths.py +++ b/galaxy_ng/tests/integration/api/test_ui_paths.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - import random import json import subprocess diff --git a/galaxy_ng/tests/integration/api/test_ui_paths_gateway.py b/galaxy_ng/tests/integration/api/test_ui_paths_gateway.py index e33f9cfaf6..2ed75adf8d 100644 --- a/galaxy_ng/tests/integration/api/test_ui_paths_gateway.py +++ b/galaxy_ng/tests/integration/api/test_ui_paths_gateway.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - import os import random import pytest diff --git a/galaxy_ng/tests/integration/api/test_v3_plugin_paths.py b/galaxy_ng/tests/integration/api/test_v3_plugin_paths.py index 20f44fb3b8..6c8c945e47 100644 --- a/galaxy_ng/tests/integration/api/test_v3_plugin_paths.py +++ b/galaxy_ng/tests/integration/api/test_v3_plugin_paths.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - import pytest from jsonschema import validate as validate_json diff --git a/galaxy_ng/tests/integration/conftest.py b/galaxy_ng/tests/integration/conftest.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/tests/integration/constants.py b/galaxy_ng/tests/integration/constants.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/tests/integration/schemas.py b/galaxy_ng/tests/integration/schemas.py index 73d602b0d2..87282ec39e 100644 --- a/galaxy_ng/tests/integration/schemas.py +++ b/galaxy_ng/tests/integration/schemas.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python3 - - schema_objectlist = { 'type': 'object', 'additional_properties': False, diff --git a/galaxy_ng/tests/integration/utils/iqe_utils.py b/galaxy_ng/tests/integration/utils/iqe_utils.py old mode 100755 new mode 100644 diff --git a/galaxy_ng/tests/integration/utils/ldap.py b/galaxy_ng/tests/integration/utils/ldap.py index f5b4aa6556..2b2066b5fc 100644 --- a/galaxy_ng/tests/integration/utils/ldap.py +++ b/galaxy_ng/tests/integration/utils/ldap.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import atexit import base64 import hashlib diff --git a/galaxy_ng/tests/unit/app/utils/test_galaxy.py b/galaxy_ng/tests/unit/app/utils/test_galaxy.py index 8369fcafae..d1162450f4 100644 --- a/galaxy_ng/tests/unit/app/utils/test_galaxy.py +++ b/galaxy_ng/tests/unit/app/utils/test_galaxy.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - import uuid from django.test import TestCase diff --git a/pyproject.toml b/pyproject.toml index 6c13401d34..b01111f087 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,6 +115,8 @@ select = [ "COM", # flake8-datetime "DTZ", + # flake8-executable + "EXE", # flake8-no-pep420 "INP", # flake8-gettext @@ -170,7 +172,7 @@ extend-ignore = [ [tool.ruff.lint.per-file-ignores] # The `galaxy_ng` is the only top-level package. No other directory contains python packages. -"!galaxy_ng/**" = ["INP"] +"!galaxy_ng/**" = ["INP", "EXE"] # Ignore "E501 Line too long" in migrations, since most of the warnings # are due to autogenerated code. "galaxy_ng/app/migrations/*" = ["E501"]