Skip to content

Commit

Permalink
refac: moved the check for newline in README.md to newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoghor committed Nov 30, 2023
1 parent 410d864 commit cddca05
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 @@ -11,6 +11,8 @@ def main():
sys.exit(1)
if not check_file_not_empty("README.md"):
print_file_empty("README.md")
if not check_file_ends_with_new_line("README.md"):
print_no_ending_new_line("README.md")
for root, dirs, files in os.walk("."):
# exclude virtual environment folders
for dir in dirs:
Expand All @@ -24,7 +26,7 @@ def main():
file_path = os.path.join(root, file)
if file_path.endswith(
(".c", ".py", ".js", ".m", ".h",
".mjs", ".jsx", ".json", ".md")
".mjs", ".jsx", ".json")
):
if not check_file_ends_with_new_line(file_path):
if not is_empty_init_py(file_path):
Expand Down

0 comments on commit cddca05

Please sign in to comment.