Update pre-commit hooks configuration to use ruff instead of black

This commit is contained in:
Jakub Marcowski 2024-05-21 15:14:59 +02:00 committed by Thaddeus Crews
parent aaa4560729
commit d9f8ef68df
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
47 changed files with 244 additions and 241 deletions

View file

@ -1,15 +1,15 @@
#!/usr/bin/env python
import os
import urllib.request
import shutil
import subprocess
import sys
import urllib.request
# Enable ANSI escape code support on Windows 10 and later (for colored console output).
# <https://github.com/python/cpython/issues/73245>
if sys.platform == "win32":
from ctypes import windll, c_int, byref
from ctypes import byref, c_int, windll
stdout_handle = windll.kernel32.GetStdHandle(c_int(-11))
mode = c_int(0)