Dev 5.2.1 (#1)

Reviewed-on: #1
Co-authored-by: aurelien.vaillant <availlant@miraculouscorp.com>
Co-committed-by: aurelien.vaillant <availlant@miraculouscorp.com>
This commit was merged in pull request #1.
This commit is contained in:
2026-07-08 19:21:14 +02:00
committed by stilobique
parent a59f3938bd
commit 5d17ec9da1
15 changed files with 22 additions and 22 deletions
+25
View File
@@ -0,0 +1,25 @@
import sys
import os
import pathlib
from pylint import lint
if __name__ == "__main__":
folder: str = ''
for v in sys.argv:
if '--module=' in v:
folder = v.replace('--module=', '')
if folder is False:
print(f'Module folder not set.')
sys.exit(1)
run = lint.Run([f'--rcfile={pathlib.Path(os.getcwd(), "linter", ".pylintrc")}', folder],
do_exit=False)
if run.linter.stats.fatal or run.linter.stats.error:
print('Pylint failed.')
sys.exit(1)
sys.exit(0)