Skip to content

Commit

Permalink
fix: __init__ file check
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmo00 committed Nov 19, 2023
1 parent aa09c96 commit c284d98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alxcheck/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c284d98

Please sign in to comment.