mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-21 22:46:57 +00:00
Skip the src/generated file in check-lines
This commit is contained in:
parent
e5cc345f49
commit
4ed4a6409b
@ -6,7 +6,8 @@ problems = False
|
|||||||
exclude = [ "*.png", "**/data/json-parsing/*.json" ]
|
exclude = [ "*.png", "**/data/json-parsing/*.json" ]
|
||||||
|
|
||||||
for path in pathlib.Path("src").glob("**/*"):
|
for path in pathlib.Path("src").glob("**/*"):
|
||||||
if path.is_dir() or path.suffix == "" or any(path.match(x) for x in exclude):
|
# Ideally we'd use generated as a glob, but .match("generated/**/*.json") doesn't work!
|
||||||
|
if path.is_dir() or path.suffix == "" or any(path.match(x) for x in exclude) or path.parts[1] == "generated":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
with path.open(encoding="utf-8") as file:
|
with path.open(encoding="utf-8") as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user