Fix invocation of ruff since its CLI has changed

This commit is contained in:
Kovid Goyal 2023-05-25 08:32:41 +05:30
parent db74bfa41e
commit b7795f989e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -77,7 +77,7 @@ class Check(Command):
def file_has_errors(self, f): def file_has_errors(self, f):
ext = os.path.splitext(f)[1] ext = os.path.splitext(f)[1]
if ext in {'.py', '.recipe'}: if ext in {'.py', '.recipe'}:
p2 = subprocess.Popen(['ruff', '--no-update-check', f]) p2 = subprocess.Popen(['ruff', 'check', f])
return p2.wait() != 0 return p2.wait() != 0
if ext == '.pyj': if ext == '.pyj':
p = subprocess.Popen(['rapydscript', 'lint', f]) p = subprocess.Popen(['rapydscript', 'lint', f])