mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-24 22:39:52 +03:00
This reverts commit b8e3c3833b
.
This commit is contained in:
parent
b8e3c3833b
commit
235f0a9eeb
9
.github/workflows/awesome_workflow.yml
vendored
9
.github/workflows/awesome_workflow.yml
vendored
@ -136,12 +136,13 @@ jobs:
|
|||||||
print(f"{len(space_files)} files contain space or dash characters:")
|
print(f"{len(space_files)} files contain space or dash characters:")
|
||||||
print("\n".join(space_files) + "\n")
|
print("\n".join(space_files) + "\n")
|
||||||
|
|
||||||
nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "leetcode" not in file and "data_structure" not in file]
|
nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "data_structure" not in file]
|
||||||
if nodir_files:
|
nodir_file_bad_files = len(nodir_files) - 1
|
||||||
|
if nodir_file_bad_files:
|
||||||
print(f"{len(nodir_files)} files are not in one and only one directory:")
|
print(f"{len(nodir_files)} files are not in one and only one directory:")
|
||||||
print("\n".join(nodir_files) + "\n")
|
print("\n".join(nodir_files) + "\n")
|
||||||
|
|
||||||
bad_files = len(upper_files + space_files + nodir_files)
|
bad_files = nodir_file_bad_files + len(upper_files + space_files)
|
||||||
if bad_files:
|
if bad_files:
|
||||||
sys.exit(bad_files)
|
sys.exit(bad_files)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user