[FIX] format script ignore some files/directory
This commit is contained in:
parent
f21ff0bfbb
commit
ff83d5e627
1 changed files with 7 additions and 0 deletions
|
|
@ -78,6 +78,13 @@ def get_modified_files():
|
||||||
)
|
)
|
||||||
if has_space:
|
if has_space:
|
||||||
file_path = file_path_space
|
file_path = file_path_space
|
||||||
|
# Remove ignoring
|
||||||
|
if (
|
||||||
|
file_path.endswith(".zip")
|
||||||
|
or file_path.endswith(".tar.gz")
|
||||||
|
or file_path.endswith("__pycache__/")
|
||||||
|
):
|
||||||
|
continue
|
||||||
file_path = os.path.join(directory, file_path)
|
file_path = os.path.join(directory, file_path)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue