From c284d9833d241f519ba2a8bf9e4cabcfa70d0a6b Mon Sep 17 00:00:00 2001 From: Emmanuel Nwafor Date: Sun, 19 Nov 2023 06:39:40 +0100 Subject: [PATCH] fix: __init__ file check --- alxcheck/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alxcheck/main.py b/alxcheck/main.py index 57f8a84..134474b 100644 --- a/alxcheck/main.py +++ b/alxcheck/main.py @@ -34,7 +34,9 @@ def main(): if file_path.endswith(".py") and not is_empty_init_py(file_path): if not check_file_is_executable(file_path): print_file_not_executable(file_path) - if file != "__init__.py" and not check_python_shebang(file_path): + if not is_empty_init_py(file_path) and not check_python_shebang( + file_path + ): print_no_shebang(file_path) check_module_function_class_documentation(file_path) pycodestyle_check(file_path)