|
|
@ -114,18 +114,14 @@ async def line_count():
|
|
|
|
"__pycache__"]
|
|
|
|
"__pycache__"]
|
|
|
|
|
|
|
|
|
|
|
|
for path, _, files in os.walk("."):
|
|
|
|
for path, _, files in os.walk("."):
|
|
|
|
# Ignore any files that are on linux starting with ".local"
|
|
|
|
if ".local" in path:
|
|
|
|
if path in LINUX:
|
|
|
|
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
for name in files:
|
|
|
|
for name in files:
|
|
|
|
file_dir = str(pathlib.PurePath(path, name))
|
|
|
|
file_dir = str(pathlib.PurePath(path, name))
|
|
|
|
# Ignoring the venv directory
|
|
|
|
# Ignoring the venv directory
|
|
|
|
if not name.endswith(".py") or ENV in file_dir:
|
|
|
|
if not name.endswith(".py") or ENV in file_dir:
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
file_amount += 1
|
|
|
|
file_amount += 1
|
|
|
|
|
|
|
|
|
|
|
|
# Count how many lines there are in every file
|
|
|
|
|
|
|
|
with open(file_dir, "r", encoding="utf-8") as file:
|
|
|
|
with open(file_dir, "r", encoding="utf-8") as file:
|
|
|
|
for line in file:
|
|
|
|
for line in file:
|
|
|
|
if line.strip().startswith("#"):
|
|
|
|
if line.strip().startswith("#"):
|
|
|
|