mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix invocation of ruff since its CLI has changed
This commit is contained in:
parent
db74bfa41e
commit
b7795f989e
@ -77,7 +77,7 @@ class Check(Command):
|
||||
def file_has_errors(self, f):
|
||||
ext = os.path.splitext(f)[1]
|
||||
if ext in {'.py', '.recipe'}:
|
||||
p2 = subprocess.Popen(['ruff', '--no-update-check', f])
|
||||
p2 = subprocess.Popen(['ruff', 'check', f])
|
||||
return p2.wait() != 0
|
||||
if ext == '.pyj':
|
||||
p = subprocess.Popen(['rapydscript', 'lint', f])
|
||||
|
Loading…
x
Reference in New Issue
Block a user